- Home /
Question by
keirebirth · Jul 07, 2019 at 06:12 AM ·
custom editorcustom-inspectorserializedobject
How to make a custom editor for a serializedObject that is in a script component
I want to make an editor that loads the serializedObject from the custom component connected to the currently selected gameobject in Hierarchy Window.
For example Unitys' Animator editor loads the animator serializedobject from the animator component that is attached to the currently selected gameobject.
i want that same behavior for my dialog editor. Currently i have wrote a custom inspector for my dialog serializedObject and the Custom Window to view the items loaded by the custom inspector. Only thing im missing is the ability to load that same serializedObject from the current selected gameobject
Comment