コード例 #1
0
ファイル: EasyEditorBase.cs プロジェクト: Doy32/Samurai
 /// <summary>
 /// Called when the editor script is enable, usually when it is going to be displayed in the inspector.
 /// </summary>
 public void OnEnable()
 {
     scriptObjectRenderer = (ScriptObjectRenderer) InspectorItemRenderer.CreateRenderer(typeof(ScriptObjectRenderer));
     scriptObjectRenderer.Initialize(this.serializedObject, this);
 }
コード例 #2
0
ファイル: EasyEditorBase.cs プロジェクト: EastNightmare/ZZRun
 /// <summary>
 /// Called when the editor script is enable, usually when it is going to be displayed in the inspector.
 /// </summary>
 public void OnEnable()
 {
     scriptObjectRenderer = (ScriptObjectRenderer)InspectorItemRenderer.CreateRenderer(typeof(ScriptObjectRenderer));
     scriptObjectRenderer.Initialize(this.serializedObject, this);
 }