Component image 
Interaction Laser component as seen in the Scene Inspector

The InteractionLaser component is part of the user to world interaction interfacing. This component is entirely regenerated separate from the avatar per respawn, making it un-reference-able.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
SmoothSpeed
|
Float | How much to smooth laser movement for this laser. |
SmoothModulateStartAngle
|
Float | Angle at which the laser smoothing speed will start modulating to catch up to your movements. Increasing this value will require larger movements for the laser to start catching up. |
SmoothModulateEndAngle
|
Float | Related to the modulate start angle, this indicates when the modulation will reach maximum speed. By changing the start and end angles, you can control how responsive the laser is the more you move your hand. |
SmoothModulateExp
|
Float | Controls the response curve of the laser modulation between the start and end angles. You can use this to either make the laser respond more sluggishly at first or to start responding quickly and then tapering off. |
SmoothModulateMultiplier
|
Float | The laser smoothing speed will be multiplied by this value once you have reached the modulate end angle. Increasing this value will make the laser catch up quicker once you move your hand far enough. Lowering the value will make it take longer to catch up. |
StickThreshold
|
Float | Controls how much the laser will stick to interactive items. Larger values will make it stick more. Setting this to zero will stop the stickiness completely. |
ShowInDesktop
|
Bool | When on, the laser visual will be rendered to you fully when in first person view in desktop mode. |
MaxTouchPenetrationDistance
|
Float | Determined by the RelayTouchSource's MaxTouchPenetrationDistance .
|
StickPointSpace
|
Slot | The slot the laser is sticking to. |
StickPointPosition
|
Float3 | The position the laser is sticking to. |
_handler
|
InteractionHandler | The interaction handler used to handle behavior for this component. |
_lastHit
|
direct AutoSyncRef`1<Slot> | The last slot hit by the laser. |
_lastInteractionTarget
|
direct AutoSyncRef`1<IInteractionTarget> | The last interactable element this laser hit. |
_lastInteractionModifier
|
direct AutoSyncRef`1<ILaserInteractionModifier> | The last interaction modifier this laser was affected by. |
_hitColor
|
ColorX | The color the laser should have when it hits something. |
_laserTextureSpeed
|
Float | The speed the texture of the laser moves for effects like dotted lines. |
_touchSource
|
RelayTouchSource | The touch source associated with this laser for touching things physically |
_laserMesh
|
BentTubeMesh | The laser mesh being constantly updated to make up this laser's visual. |
_laserMaterial
|
OverlayUnlitMaterial | The material being used for this laser's visual. |
_laserTexture
|
StaticTexture2D | The texture being used for this laser's visual. |
_behindLaserTint
|
field drive of ColorX | The tint field being used for this laser's visual. |
_laserRenderQueue
|
field drive of Int | The render queue field of the material being used for this laser's visual. |
_laserFrontTextureOffset
|
field drive of Float2 | The front texture field of the material being used for this laser's visual. |
_laserBehindTextureOffset
|
field drive of Float2 | The behind texture field of the material being used for this laser's visual. |
_directPoint
|
field drive of Float3 | The field of the direct point of the bent tube mesh being used for this laser's visual. |
_actualPoint
|
field drive of Float3 | The field of the actual point of the bent tube mesh being used for this laser's visual. |
_startColor
|
field drive of ColorX | The field of the start color of the bent tube mesh being used for this laser's visual. |
_endColor
|
field drive of ColorX | The field of the end color of the bent tube mesh being used for this laser's visual. |
_pointSlot
|
Slot | The field of the point slot of the bent tube mesh being used for this laser's visual. |
_pointSlotPos
|
field drive of Float3 | The field of the position of the point slot being used for this laser's visual. |
_laserVisible
|
field drive of Bool | The field used to control the visibility of the laser. |
_cursorVisible
|
field drive of Bool | The field used to control the cursor visibility of the laser. |
_cursorRoot
|
Slot | The root slot of the cursor visual. |
_cursorImageRoot
|
Slot | The root slot of the cursor image visual. |
_cursorTexture
|
StaticTexture2D | The component used for the cursor texture. |
_cursorMaterial
|
OverlayUnlitMaterial | The material of the cursor. |
_cursorFrontTint
|
field drive of ColorX | The field used to control the tint of the cursor when it is directly visible by the camera. |
_cursorBehindTint
|
field drive of ColorX | The field used to control the tint of the cursor when it is not directly visible by the camera. |
_cursorRenderQueue
|
field drive of Int | The render queue field of the material being used for this laser's cursor visual. |
_cursorOrientation
|
field drive of FloatQ | The field used to control the orientation for this laser's cursor visual. |
_cursorTint
|
ColorX | The field used to control the color for this laser's cursor visual. |
_directCursorVisualsVisible
|
Bool | Whether the cursor's direct view visuals are visible or not. |
_directCursorActive
|
field drive of Bool | the field to drive with whether the direct cursor is active. |
_directCursorRoot
|
Slot | The root slot of the direct cursor visual. |
_directCursorImageRoot
|
Slot | The root slot of the direct cursor image. |
_directCursorOffset
|
field drive of Float3 | The field to drive with the direct cursor's offset. |
_directCursorOrientation
|
field drive of FloatQ | The field to drive with the direct cursor's orientation. |
_directLineTarget
|
field drive of Float3 | The field to drive with the direct cursor's direct line position. |
_directLineMesh
|
SegmentMesh | The mesh being used for the direct line visual. |
_segmentColorFront
|
field drive of ColorX | The color field of the direct line mesh's front color. |
_segmentColorBehind
|
field drive of ColorX | The color field of the direct line mesh's behind color. |
_segmentRenderQueue
|
field drive of Int | The render queue field of the direct line mesh's material. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
GetTipPosition:Func`2<RelayTouchSource, Float3>
|
Func`2<RelayTouchSource, Float3> | ✓ | Gets the tip position of this laser, keeping in mind the settings and values of the inputted RelayTouchSource. |
GetTipDirection:Func`2<RelayTouchSource, Float3>
|
Func`2<RelayTouchSource, Float3> | ✓ | Gets the tip direction of this laser, keeping in mind the settings and values of the inputted RelayTouchSource. |
GetTouchType:Func`2<RelayTouchSource, TouchType>
|
Func`2<RelayTouchSource, TouchType> | ✓ | Gets the touch type of this laser, keeping in mind the settings and values of the inputted RelayTouchSource. |
GetTouchable:TouchableGetter
|
TouchableGetter | ✓ | Gets the touching status of an inputted RelayTouchSource and what it has touched if any. |
Usage
Not to be interacted with by the user. handles internal behavior.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.