A class in Root.Township, the global namespace.
Inspector entry for one field or property marked with BubbleInspectorFieldAttribute, shown in an InteractableInspector bubble.
Constructors
| Member | What it is |
|---|
ValueMember(FieldInfo field) | Creates a ValueMember from property. |
ValueMember(PropertyInfo property) | Creates a ValueMember from property. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private static InteractableInspector currentInteractor | The knob or other control currently spawned by any value entry; shared, so opening one releases the last. |
private InteractableInspector currentInteractorInternal | Control spawned by this entry, cleaned up in Clean if it is still the current one. |
private Func<object, object> valueGetter | Reads the field or property from a target object. |
private string valueName | The field or property name shown in the bubble. |
private Action<object, object> valueSetter | Writes the field or property on a target object. |
Properties
Methods
| Member | What it is |
|---|
override void Clean() | Cleans up its knob bubble if it is the one open. |
object GetValue(object target) | Reads the value from the target. |
override void Interact(Component target, InteractableInspector interactable) | Shows the current value, and for knob fields opens a knob bubble to change it. |
void SetNumericValue(float value, object target) | Writes a float to the target and updates the label. |
Used in
Members of other types that take, return or hold a ValueMember: