Summary
[Editor-Only]
A custom Inspector for
UnityEngine.MonoBehaviour
but not its children, so it should only ever get used on
missing scripts.
- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor - Base Types
-
- Editor
- Derived Types
graph BT
Type-->Base0["Editor"]
Type["MissingScriptEditor"]
class Type type-node
Derived0["Editor<T>"]-->Type
click Derived0 "/inspector-gadgets/api/InspectorGadgets.Editor/Editor_1"
Syntax
[CustomEditor(typeof(MonoBehaviour), isFallback = true)]
public class MissingScriptEditor : Editor
Attributes
Type | Description |
---|---|
CustomEditor |
Properties
Name | Value | Summary |
---|---|---|
OtherProperties | List |
All of the target's properties other than "m_Script".
|
ScriptProperty | SerializedProperty |
The target's "m_Script" property.
|
Methods
Name | Value | Summary |
---|---|---|
DestroyProperly |
void |
Destroys the `target`. Shows a confirmation dialog before destroying assets.
static
|
DestroyProperly |
void |
Destroys the `targets`. Shows a confirmation dialog before destroying assets.
static
|
OnDisable |
void |
Indicates to the
InspectorGadgets.Editor.MissingScriptWindow that the target has been deselected.
|
OnEnable |
void |
Gathers the target's properties. If its script is missing, this method tries to find other similar scripts.
|
OnInspectorGUI |
void |
Draws the target's inspector with a message indicating that the script is missing.
|