Exemple #1
0
 /// <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);
 }
 /// <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);
 }