Skip to main content

ComponentInspector

A class in Root.Township, the global namespace.

In-game bubble inspector node for one component. Interacting with it spreads bubbles for the component's exposed methods and values around it, and interacting again removes them.

Constructors​

MemberWhat it is
ComponentInspector(MonoBehaviour component)Creates a ComponentInspector from component.

Fields​

MemberWhat it is
List<MethodMember> availableMethodsMethods shown as bubbles when expanded.
List<ValueMember> availableValuesFields or properties shown as bubbles when expanded.
3 private and internal fields
MemberWhat it is
private Component componentThe component being inspected.
private bool isExpandedWhether the member bubbles are showing.
private List<InteractableInspector> spawnedMember bubbles currently spawned.

Properties​

MemberWhat it is
override InspectorType InspectorType { get; }Always InspectorType.Component.
override string Name { get; }The component's type name.

Methods​

MemberWhat it is
override void Clean()Removes every member bubble this node spawned.
override void Interact(Component target, InteractableInspector interactable)Toggles the member bubbles, laying them out in a ring around the component.

Used in​

Members of other types that take, return or hold a ComponentInspector: