Interface IUnityCompositeViewRuntime
Unity-layer intention interface for the composite view runtime. Exposes Unity-specific operations that are NOT on ICompositeView (the Unity transform/GameObject that children are parented under). Allows the composition root and layout builder to wire a composite view without casting to the concrete type.
Namespace: Serenity.Ui.Infrastructure.Interfaces
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public interface IUnityCompositeViewRuntime
Methods
GetContentRoot()
Gets the transform under which children are parented.
Declaration
Transform GetContentRoot()
Returns
| Type | Description |
|---|---|
| Transform | The content-root transform, or this view's transform if none was set. |
SetContentRoot(GameObject)
Sets the transform under which children are parented — either this view's own object or, when the layout is scrollable, the generated scroll content. Also used as the show/hide wrapper.
Declaration
void SetContentRoot(GameObject contentRoot)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | contentRoot | The content-root GameObject produced by the layout builder. |