Automated: create new component page |
add infk |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|Name=Laser | |Name=Laser | ||
}} | }} | ||
The '''Laser''' component creates a simple red laser when attached that raycasts the enviroment. | |||
When added to a slot the Laser component creates a [[Component:MeshRenderer|MeshRenderer]], a [[Component:SegmentMesh|SegmentMesh]], a [[Component:RayDriver|RayDriver]], and a red [[PBS RimMetallic]]. | |||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|_material|'''[[PBS_RimMetallic|PBS_RimMetallic]]'''|TypeAdv0=true| | |_material|'''[[PBS_RimMetallic|PBS_RimMetallic]]'''|TypeAdv0=true| The material to use for the laser. | ||
|_rayDriver|'''[[Component:RayDriver|RayDriver]]'''|TypeAdv1=true| | |_rayDriver|'''[[Component:RayDriver|RayDriver]]'''|TypeAdv1=true| The ray driver driving the generated segment mesh. | ||
|_meshRenderer|'''[[Component:MeshRenderer|MeshRenderer]]'''|TypeAdv2=true| | |_meshRenderer|'''[[Component:MeshRenderer|MeshRenderer]]'''|TypeAdv2=true| The mesh renderer rendering the segment mesh for this laser pointer type component. | ||
}} | }} | ||
== | == Usage == | ||
{{stub}} | |||
== Examples == | == Examples == | ||
{{stub}} | |||
== See Also == | == See Also == | ||
Line 20: | Line 24: | ||
[[Category:Components:Utility{{#translation:}}|Laser]] | [[Category:Components:Utility{{#translation:}}|Laser]] | ||
[[Category:Components{{#translation:}}|Laser]] | [[Category:Components{{#translation:}}|Laser]] | ||
Latest revision as of 16:29, 21 January 2025
Component image 
Laser component as seen in the Scene Inspector

The Laser component creates a simple red laser when attached that raycasts the enviroment.
When added to a slot the Laser component creates a MeshRenderer, a SegmentMesh, a RayDriver, and a red PBS RimMetallic.
Usage
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. |
_material
|
PBS_RimMetallic | The material to use for the laser. |
_rayDriver
|
RayDriver | The ray driver driving the generated segment mesh. |
_meshRenderer
|
MeshRenderer | The mesh renderer rendering the segment mesh for this laser pointer type component. |
Usage
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.