I want to write a custom editor Inspector , use the [Spine Animation] to show a drop down menu of all animation clips.
As you can see, no matter what I write the
[Spine Animation]
public string editAnimation;
the drop down menu did not appear on the editor inspector.
As we know , in a class where extends Monobehavior can show the drop down menu , but how should I show it easily in an editor OnInspectorGUI() method ?
14 4月 2016, 19:40
BoYing написалI want to write a custom editor Inspector , use the [Spine Animation] to show a drop down menu of all animation clips.
As you can see, no matter what I write the
[Spine Animation]
public string editAnimation;
the drop down menu did not appear on the editor inspector.
As we know , in a class where extends Monobehavior can show the drop down menu , but how should I show it easily in an editor OnInspectorGUI() method ?
Ah ha !~ I see the code then work it out myself ! >😃 :rofl: