Allows the container to scale width and height independently. When enabled, scaling is non-uniform and each axis is clamped to its configured min/max size limits.
Enables moving the frame.
ReadonlyapiGeneric object accessible by other instances of ScriptComponent. Use this object to store references to properties and methods that need to be accessible from other ScriptComponents.
Automatically scales child content when the frame is resized to maintain proportions.
When enabled, the frame automatically appears when hovered and hides when not being interacted with. Disable to manually control frame visibility.
Current interactor that is interacting with the frame.
If disabled, the Component will stop enacting its behavior.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
ReadonlyonPublic api for adding functions to the onHideVisualEvent event handler.
onHideVisual is invoked when the frame has finished hiding its visuals.
ReadonlyonReadonlyonReadonlyonPublic api for adding functions to the onInitializedEvent event handler.
ReadonlyonPublic api for adding functions to the onScalingEnd event handler.
ReadonlyonPublic api for adding functions to the onScalingStart event handler.
ReadonlyonPublic api for adding functions to the onScalingUpdate event handler.
ReadonlyonPublic api for adding functions to the onShowVisualEvent event handler.
onShowVisual is invoked when the frame starts to show its visuals.
ReadonlyonPublic api for adding functions to the onSnappingComplete event handler.
ReadonlyonPublic api for adding functions to the _onTranslationEndEvent event handler.
ReadonlyonPublic api for adding functions to the onTranslationStartEvent event handler.
When enabled, Z-axis scaling of content will match X-axis scaling during frame resizing.
ReadonlysceneThe SceneObject this component is on.
Reference to frame's default front follow behavior.
Readonlyuniquewhether interactive scaling of the frame via corner handles is enabled
Sets whether interactive scaling of the frame via corner handles is enabled
if true, scaling is enabled through the corner handles
Billboard component for the frame, used for automatic rotation to face the camera/user.
Width of the border around the frame.
Transform of content parent SceneObject.
whether the frame only allows interaction in the grab zones
Sets whether the frame only allows interaction in the grab zones
if true, interaction is limited to the grab zones
Handles hover behavior for the frame.
gets the onlyInteractOnBorder setting
sets the onlyInteractOnBorder setting
if true, interaction is limited to the border of the frame
current opacity of frame elements
sets opacity for all frame elements
Note this parameter is effected by calls to showVisual and hideVisual.
current renderOrder for the renderMeshVisual of the frame itself
sets renderOrder for the renderMeshVisual of the frame itself
RoundedRectangle component for the frame, used for rendering the frame's visual.
Getter for the initial scaling size.
Shows a button that allows users to close or dismiss the frame.
Shows a button that allows users to toggle whether the frame follows their view as they move.
TotalSize is the total size of the frame including border and padding in local space centimeters.
Transform of top level frame object.
Adds a new SceneEvent, triggered by eventType events, to the ScriptComponent.
Destroys the component.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
StaticgetReturns the name of this object's type.
tween to hide visuals of frame and elements
Initializes the frame component, setting up its visual appearance, interaction capabilities,
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
whether the snapping behavior is checking for snappable elements
whether the snapping behavior is currently tweening
Removes a previously added SceneEvent from the ScriptComponent.
Sets the buffer degrees for the billboard component. Will only be effective if Frame's billboarding is set to true, and xAlways and/or yAlways is set to true.
the buffer degrees for the x-axis
the buffer degrees for the y-axis
enable or disable the option to turn on the default follow behavior with the follow button
tween to show visuals of frame and elements
tween from current opacity to target opacity, will cancel existing opacity tweens
Used to bind custom JavaScript or TypeScript code to specific Lens events for dynamic interactivity.
Remarks
These Script Components are attached to SceneObjects, providing the ability to modify properties and behaviors of those objects or others within the scene. Script Components expose input fields in the Inspector panel, allowing for customization of script behavior without altering code. Any script can access the ScriptComponent executing them through the variable
script.See
Example