|
|
|
|
|
|
private static readonly string DRAW_CONDITION_ENTRY_FORMAT = "drawConditionsByAttributeType[typeof({0})] = new {1}();" + Environment.NewLine; |
|
|
|
|
|
|
|
//[UnityEditor.Callbacks.DidReloadScripts]
|
|
|
|
[MenuItem("Tools/NaughtyAttributes/Update Attributes Database")] |
|
|
|
//[MenuItem("Tools/NaughtyAttributes/Update Attributes Database")]
|
|
|
|
private static void GenerateCode() |
|
|
|
{ |
|
|
|
GenerateScript<PropertyMeta, PropertyMetaAttribute>("PropertyMetaDatabase", "PropertyMetaDatabaseTemplate", META_ENTRY_FORMAT); |
|
|
|