Skip to content
Update Laser Pointer authored by dev2_just2devs's avatar dev2_just2devs
...@@ -49,10 +49,10 @@ Using the laser pointer data component you can do the following: ...@@ -49,10 +49,10 @@ Using the laser pointer data component you can do the following:
- Prevent the laser pointers from interacting with an actor - Prevent the laser pointers from interacting with an actor
- Specify a custom laser pointer mesh scale for an actor - Specify a custom laser pointer mesh scale for an actor
You can find an example of the first point in the example project inside the UI level. The transparent squared buttons are setup ultimately inherit from HTButton which makes them interactable with by laser pointers. Since we want the user to only interact with them by using the index finger we have added a laser pointer data component and set the property CanUseLaserPointer to false. You can find an example of the first point in the example project inside the UI level. The transparent buttons are inherit from HTButton which makes them interactable with by laser pointers. Since we want the user to only interact with them by using the index finger we have added a laser pointer data component and set the property CanUseLaserPointer to false.
![image](uploads/aea40818ccd4eb4129bf966b4588ed31/image.png) ![image](uploads/aea40818ccd4eb4129bf966b4588ed31/image.png)
An example of the second point is in the same map on the slider. We want the slider to be interactable with by using the laser pointers but would like the pointer mesh to be smaller. In this case we have added a laser pointer data component, left the CanUseLaserPointer property to true but set the LaserPointerMeshScale to 0.5 on each axis. An example of the second point is in the same map on the slider. We want the slider to be used by the laser pointers but would like the pointer mesh to be smaller. In this case we have added a laser pointer data component and set the LaserPointerMeshScale to 0.5 on each axis.
![image](uploads/6577d0e20f7eb0095f1be1e9d0e5356d/image.png) ![image](uploads/6577d0e20f7eb0095f1be1e9d0e5356d/image.png)
\ No newline at end of file