mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
27 lines
879 B
Plaintext
27 lines
879 B
Plaintext
|
#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
|