unity-atoms/Source/Editor/Generator/Resources/UA_Template_AtomDrawers.txt

27 lines
879 B
Plaintext
Raw Normal View History

2019-07-05 04:55:22 -04:00
#if UNITY_2019_1_OR_NEWER
using UnityEditor;
namespace UnityAtoms
{
// Event drawer
[CustomPropertyDrawer(typeof({TYPE_NAME}Event))]
public class {TYPE_NAME}EventDrawer : AtomDrawer<{TYPE_NAME}Event> { }
// Event x 2 drawer
[CustomPropertyDrawer(typeof({TYPE_NAME}{TYPE_NAME}Event))]
public class {TYPE_NAME}{TYPE_NAME}EventDrawer : AtomDrawer<{TYPE_NAME}{TYPE_NAME}Event> { }
// Constant drawer
[CustomPropertyDrawer(typeof({TYPE_NAME}Constant))]
public class {TYPE_NAME}ConstantDrawer : AtomDrawer<{TYPE_NAME}Constant> { }
// List drawer
[CustomPropertyDrawer(typeof({TYPE_NAME}List))]
public class {TYPE_NAME}ListDrawer : AtomDrawer<{TYPE_NAME}List> { }
// Variable drawer
[CustomPropertyDrawer(typeof({TYPE_NAME}Variable))]
public class {TYPE_NAME}VariableDrawer : AtomDrawer<{TYPE_NAME}Variable> { }
}
#endif