This commit is contained in:
Crispy 2023-01-22 16:38:23 +01:00
commit c7d8c303a6
499 changed files with 2349700 additions and 0 deletions

View 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
}
}
}