11-22-2024, 02:21 AM
I have a GameObject (named "Player") with an attached SplineController. Based on user input, I want to start/stop movement along the spline. I tried to reference the controler but I get an error that the result is a Component instead of a SplineController. What is the correct way to access an object that already exists?
Code:
controller = GameObject.Find("Player").GetComponent("SplineController")
