ComponentRef<T>
A reference to an already-declared component, captured with NodeHandle.Ref and passed as a UnityEvent listener target. Reference-only: it exposes no configuration members, so a component can only be configured inside its own Component<T>(c => ...) closure.
public sealed class ComponentRef<T>T
Compile-time scaffolding only — SceneBuilder parses the source text.
Members
Asmethod
public T As()This component reference, typed as T so it can be written as a UnityEvent listener's object argument (e.g. hud.Bind(opener.As())). Compile-time cast scaffolding only — it does not select a different component and performs no work at runtime.