- Home /
How to automatically assign steamVR controller, since GameObject.Find doesn't work?
What is the correct way of "finding" a SteamVR controller? Below method doesn't work and I don't know how to locate a SteamVR_TrackedObject.
public class AutoAssignController : MonoBehaviour { private SteamVR_TrackedObject ControllerRight; // Use this for initialization void Start () { ControllerRight = GameObject.Find("[CameraRig]/Controller (right)"); }
Error message I get: Cannot implicitly convert type 'UnityEngine.GameObject' to 'SteamVR_TrackedObject'
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Unity 2018.2 LWRP blackscreen on build(Android VR) 2 Answers