- Home /
Changing ContinuousMoveProviderBase variables (abstract class)
So I set up my XR Rig and all of it works but I wanted to add a sprinting function if the use the primary2DAxisClick. There's a script called ContinuousBasedMoveProvider that's attached to the LocomotionSystem for the XR rig. In the inspector window instead of providing the ContinuousBasedMoveProvider script it takes you to an ActionBasedMoveProvider script that doesn't contain any of the variables in the inspector. So I did some digging and found the ContinuousMoveProviderBase script which is an abstract script and seems to contain all the variables that are mentioned inside the inspector exactly. And it's declared under the namespace UnityEngine.XR.Interaction.Toolkit but if I try to change the m_MoveSpeed variable using UnityEngine.XR.Interaction.Toolkit.ContinousBasedMoveProviderBase.m_MoveSpeed the editor keeps telling me there is no such variable. Does anyone know how to access this variable from either a static script or a monobehaviour?
Your answer
Follow this Question
Related Questions
Can abstract classes inherit abstract methods without implementing them? 1 Answer
Abstract class question 1 Answer
How to make an abstract class with a constructor that needs a List of custom objects? 1 Answer
Flip cubemap image from within the shader. 1 Answer
Gear VR app got stuck with pink screen 0 Answers