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(3)

Types that inherit from SelectableEntity.

public UniTextSelectable Owner{ get }
public void Attach()
public void Detach()
protected virtual void ValidateAttachment()

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.