The '''Nested Canvas''' component takes in a target [[Component:Canvas|Canvas]] to nest as, and then it drives the values to the <code>StartingOffset</code>, <code>StartingMaskDepth</code>, and sets the [[Component:BoxCollider|BoxCollider]] <code>Offset</code> and <code>Size</code>, for consistency with the main canvas this component is under.
|_renderOffset|{{RootFieldType|FieldDrive`1|[[Type:Int|Int]]}}|TypeAdv1=true|The render offset reference from the target canvas to be applied to the new nested canvas
|_maskDepth|{{RootFieldType|FieldDrive`1|[[Type:Int|Int]]}}|TypeAdv2=true|The mask depth reference from the target canvas to be applied to the new nested canvas
}}
}}
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This component is used mainly for consistency with other canvas components, no matter where in the world hierarchy. It does not need to be on the same canvas or panel to work.
<!--T:5-->
<!--T:5-->
Line 27:
Line 26:
<!--T:6-->
<!--T:6-->
== Related Components ==
== Related Components ==
This needs a [[Component:Canvas|Canvas]] component to work.
The Nested Canvas component takes in a target Canvas to nest as, and then it drives the values to the StartingOffset, StartingMaskDepth, and sets the BoxColliderOffset and Size, for consistency with the main canvas this component is under.
The mask depth reference from the target canvas to be applied to the new nested canvas
Usage
This component is used mainly for consistency with other canvas components, no matter where in the world hierarchy. It does not need to be on the same canvas or panel to work.