浏览代码

Fix menuItem

/2018.3
Thomas ICHÉ 6 年前
当前提交
b6651013
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      NaughtyAttributes/Editor/CodeGeneration/CodeGenerator.cs

2
NaughtyAttributes/Editor/CodeGeneration/CodeGenerator.cs


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);

正在加载...
取消
保存