init
This commit is contained in:
commit
c7d8c303a6
499 changed files with 2349700 additions and 0 deletions
28
Assets/ABI.CCK/Scripts/Editor/CCK_CVRPointerEditor.cs
Executable file
28
Assets/ABI.CCK/Scripts/Editor/CCK_CVRPointerEditor.cs
Executable file
|
@ -0,0 +1,28 @@
|
|||
using ABI.CCK.Components;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
#if CCK_ADDIN_MAGICACLOTHSUPPORT
|
||||
using MagicaCloth;
|
||||
#endif
|
||||
|
||||
namespace ABI.CCK.Scripts.Editor
|
||||
{
|
||||
[CustomEditor(typeof(ABI.CCK.Components.CVRPointer), true)]
|
||||
public class CCK_CVRPointerEditor : UnityEditor.Editor
|
||||
{
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
base.OnInspectorGUI();
|
||||
#if CCK_ADDIN_MAGICACLOTHSUPPORT
|
||||
var components = ((CVRPointer) target).GetComponentsInParent<BaseCloth>();
|
||||
if (components.Length > 0)
|
||||
{
|
||||
EditorGUILayout.HelpBox(
|
||||
"A MagicaCloth component was detected on this Object or its parent. This can lead to pointers to not work as intended.",
|
||||
MessageType.Error
|
||||
);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue