The InspectorObject
property of the Editor.EditorUtility
class is used to set the object that will be inspected by the inspector. This property is static, meaning it can be accessed without instantiating the EditorUtility
class.
The InspectorObject
property of the Editor.EditorUtility
class is used to set the object that will be inspected by the inspector. This property is static, meaning it can be accessed without instantiating the EditorUtility
class.
To use the InspectorObject
property, simply assign an object to it. This object will then be displayed in the inspector for examination and modification.
// Example of setting an object to be inspected Editor.EditorUtility.InspectorObject = myObject;