Docsv3.31.0
Back to API Reference
Class

SelectableEntity

abstract

Base implementation of the selectable entity lifetime. Override the protected hooks to bind and release owner-specific state; serialized configuration remains available between attachments.

Derived Types(2)

Types that inherit from SelectableEntity.

public UniTextSelectable Owner{ get }

The selectable this entity is currently attached to, or null while detached.

public void Attach(UniTextSelectable value)

Attaches the entity to its complete owner before the entity can be used.

public void Detach()

Ends the current attachment and releases owner-specific state.

protected virtual void ValidateAttachment(UniTextSelectable value)

Validates serialized configuration before the owner becomes observable.

protected virtual void OnAttach()

Runs after Owner is assigned.

protected virtual void OnDetach()

Runs before Owner is cleared.

protected UniTextSelectable RequireOwner()

Returns the current owner or fails when an operation is invoked outside the attached lifetime.