Layout Context
Context: HL Kit … Kit Reference … Context Transitions
See Also: Layout Target References
From within a "layout" context, you can utilize the following set of valid context transitions:
parent Transitions to the scene context corresponding to the visual element that contains the layout.
Example: this.parent
template[id] Transitions to the template context corresponding to the template within the current layout that possesses the id specified. If the template does not exist within the layout, the transition fails to resolve.
Example: this.template[mytemplate]
NOTE! The id specified is the id of the template reference, as defined within the layout, and not necessarily the id of the template itself.portal[id] Transitions to the portal context corresponding to the portal within the current layout that possesses the id specified. If the portal does not exist within the layout, the transition fails to resolve.
Example: this.portal[myportal]
NOTE! The id specified is the id of the portal reference, as defined within the layout, and not necessarily the id of the portal itself.
NOTE! Only portals defined directly within the layout can be accessed via this transition. Portals within templates must be accessed via the template.container Transitions to the container context corresponding to the container to which the layout applies, whether it be an actor or a gizmo.
Example: this.container
NOTE! After transitioning, access within the new container context will be read-only and limited in what information can be retrieved.
NOTE! This transition can only be used as the first transition when within a visual script.hero Transitions to the hero context corresponding to the hero to which the layout applies.
Example: this.hero
NOTE! After transitioning, access within the new hero context will be read-only and limited in what information can be retrieved.
NOTE! This transition can only be used as the first transition when within a visual script.