This commit is contained in:
2024-04-22 00:00:51 +02:00
parent cf04700131
commit 11fd1a3d92
54 changed files with 11144 additions and 1416 deletions

View File

@@ -1,3 +1,14 @@
#if !UNITY_EDITOR
using UnityEngine;
[System.AttributeUsage(System.AttributeTargets.Field, Inherited = false, AllowMultiple = true)]
public sealed class ShowIfAttribute : PropertyAttribute
{
public ShowIfAttribute(string ConditionalSourceField, bool expectedValue, bool HideInInspector = false)
{
}
}
#else
/* Title : Attribute for show a field if other field is true or false.
* Author : Anth
*/
@@ -107,4 +118,6 @@ public class ConditionalHidePropertyDrawer : PropertyDrawer
return false;
#endif
}
}
}
#endif