Lemmings
Remappable Gestures For Unity
Loading...
Searching...
No Matches
LemmingShepherdEditor Class Reference

Custom inspector for the LemmingShepherd component. Provides debugging and live editing tools for viewing and modifying the current list of registered Lemmings and their relationships. More...

Inherits Editor.

Public Member Functions

override void OnInspectorGUI ()
 Draws the custom inspector interface. Includes toggles, buttons, and foldouts for lemmings and relationships.

Private Member Functions

void OnEnable ()
 Called when the inspector is enabled. Caches the target LemmingShepherd reference.
void DrawLemmings ()
 Renders the list of registered Lemmings in a foldout section. Displays their names and associated GameObjects.
void DrawRelationships ()
 Renders the list of active LemmingRelationships. Provides foldouts for individual relationship entries.
void DrawRelationshipEntry (LemmingRelationship relationship, LemmingRelationshipInfo info)
 Renders a single LemmingRelationship with its preview and editable fields.
void PromptSampleValue (LemmingRelationship relationship, LemmingRelationshipInfo info)
 Opens a delay prompt and then samples a value from the relationship after a timer. Sets it as either the min or max.
void ValidateAndPopulate ()
 Refreshes all registered Lemmings and Relationships in the Shepherd from the current scene and project.

Private Attributes

LemmingShepherd shepherd
bool showLemmings = true
bool showRelationships = true
Dictionary< LemmingRelationship, bool > relationshipFoldouts = new()
 Dictionary to hold references to Lemming Relationship and organize them for layout.
bool liveEditMode = false

Detailed Description

Custom inspector for the LemmingShepherd component. Provides debugging and live editing tools for viewing and modifying the current list of registered Lemmings and their relationships.


The documentation for this class was generated from the following file:
  • Assets/Lemmings/Scripts/Editor/LemmingEditorUtilities.cs