Interface IScyllaInspectorChangeHandler
Implemented by a component that has to react when its serialized fields are changed in the Editor, by an Inspector edit, an Undo or a Redo.
Namespace: Scylla.Core.Util
Assembly: ScyllaCore.dll
Syntax
public interface IScyllaInspectorChangeHandler
Remarks
Use it instead of overriding OnValidate or Reset on a type derived from
UIBehaviour. Unity declares those two methods there only in the Editor's build
of uGUI, so a player-compiled DLL cannot override them, and a project that installs
Scylla as a package runs that DLL inside the Editor. A plain MonoBehaviour or
ScriptableObject can keep using OnValidate without a preprocessor guard.
The Scylla Core editor assembly calls OnInspectorChanged() once the change has been applied, outside the serialization pass. It is never called in a player build.
Methods
OnInspectorChanged()
Called in the Editor after the component's serialized fields were changed.
Declaration
void OnInspectorChanged()