You've already forked UniversalViewer
fixes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user