![]() |
Lemmings
Remappable Gestures For Unity
|
Custom editor for the Lemming component. Provides additional inspector functionality to validate snapshot references. More...
Inherits Editor.
Public Member Functions | |
| override void | OnInspectorGUI () |
| Draws the custom inspector GUI, including the default inspector and a button to check if this Lemming is referenced by any herd snapshot. | |
Private Member Functions | |
| void | OnEnable () |
| Called when the editor is enabled. Caches a reference to the target Lemming component. Also registers the Lemming with the Shepherd. | |
| void | OnDisable () |
| Used when the component is disabled to remove it from the Shepherd. | |
| void | CheckSnapshotReferences () |
| Checks all LemmingHerdSnapshot assets in the project to see if any of them reference this Lemming's GameObject. Logs a warning for each match to inform the user that this Lemming must be active to function properly. | |
Private Attributes | |
| Lemming | lemming |
| A reference to the currently inspected Lemming component. | |
Custom editor for the Lemming component. Provides additional inspector functionality to validate snapshot references.