The color at the start (origin) of the interactor line visual.
The color at the end (target) of the interactor line visual.
Optional_Reference to the Interactor component that this line will visualize. The line visual appears only when the referenced interactor is using Indirect targeting mode and is actively targeting.
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.
If disabled, the Component will stop enacting its behavior.
ReadonlyisReturns true if this Component, its SceneObject, and all of that SceneObjects parents are enabled.
Controls the visual style of the interactor line: 0: Full: Renders a continuous line from start to end. 1: Split: Creates a segmented line with gaps between sections. 2: FadedEnd: Gradually fades out the line toward its end point.
ReadonlysceneThe SceneObject this component is on.
ReadonlyuniqueGets the color of the visual from the start.
Gets the color of the visual from the end.
Gets whether the visual is active (can be shown if hand is in frame and we're in far field targeting mode).
Sets whether the visual can be shown, so developers can show/hide the ray in certain parts of their lens.
Gets the current visual style.
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.
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.
Destroys cursor & line renderer when the custom component is destroyed.
Removes a previously added SceneEvent from the ScriptComponent.
Updates the line visual each frame
Deprecated
No longer recommended for use in new projects. This class provides visual representation for interactor lines. It allows customization of the line's material, colors, width, length, and visual style. The class integrates with the InteractionManager and WorldCameraFinderProvider to manage interactions and camera positioning.