WaveVR_Beam.cs simulates a laser pointer for the controller to help the user choose an object.
We provide a prefab Beam in Assets/WaveVR/Prefabs/
This script provides laser pointer customization options for the user.:
Click to show beam or not, default is true.
Listen to device
Will show beam when device is connected, and hide beam when device is disconnected, default is false.
Use system config
If this option is checked, beam length and color is defined by system config. default is checked.
Use system config isn’t checked, we will provide more options to developer as
Update beam per frame
The beam will update every frame if checked. default is false.
Beam will show ahead of controller model, default is 0.015f.
Beam width of start side, default is 0.000625f.
Beam length, default is 0.65f.
Beam width of end side, default is 0.00125f.
Use default material
The beam will use material provided by WaveVR SDK. default is checked and choose start/end color.
Beam color of start side, default is 0xFFFFFFFF.
Beam color of end side, default is 0xFFFFFFFF.
Use default material isn’t checked, developer will select
Custom material and beam will apply this material. Developer is able to use it to design your preferred beam style.
Script WaveVR_Beam.cs in Assets/WaveVR/Scripts/