I’m trying to enable and disable my VRLaserPointer during certain segments of the game. I saw that I can disable it by writing: game.StarterGui:SetCore(“VRLaserPointerMode”, 0)
However, Im not sure how to enable it back. I have tried:
game.StarterGui:SetCore(“VRLaserPointerMode”, true)
game.StarterGui:SetCore(“VRLaserPointerMode”, 1)
game.StarterGui:SetCore(“VRLaserPointerMode”, 2)
game.StarterGui:SetCore(“VRLaserPointerMode”, 3)
I’m not aware of that function. It appears the laser is in the Camera object in workspace as well though. Isn’t it also possible to set the LocalTransparencyModifier of the parts in there to 1?
Hi there! You can turn the laser pointer back on with game.StarterGui:SetCore(“VRLaserPointerMode”, "Pointer")
This API definitely needs an update to better fit current patterns and documentation.
Found within an archive of old roblox corescripts from way back when.
We really need updated documentation on this sort of stuff. It is crucial to those developing VR related content.
Update:
It appears you can now modify VR laser pointers directly without the use of setcore; however, the enumerator excludes types "navigation " and "hidden ".