Disabling unity premade script component,Disabling sealed public script component
Hello,
For my college I'm developing an VR application and for my VR Rig I also used this Unity premade Snap Turn Provider component. The problem is, that i want to disable this component via script but if I want to getcomponent this in my Rig, it doesn't show up or is marked as false if i write it myself. My self written Components/Scripts work as always and i dont know what to do anymore. I saw in the "SnapTurnProvider" script, that it is a sealed public class(could that be the problem?)
Component in my VR Rig:
Trying via script:
Answer by xxmariofer · Nov 17, 2020 at 02:47 PM
My bet is that SnapTurnProvider is inside a namespace, can you take a look to the script and double check?
Thank you very much! Yeah under "UnityEngine.XR.Interaction.Toolkit" I found it.