Posts: 3
Threads: 2
Joined: Nov 2024
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
Code:
controller = GameObject.Find("Player").GetComponent("SplineController")
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?
Posts: 2,111
Threads: 92
Joined: Jun 2017
11-22-2024, 10:35 AM
(This post was last modified: 11-22-2024, 10:48 AM by _Aka_.)
Hi,
This is a question regarding Uniy in general, and not Curvy Splines in particular. For such questions, I recommend using perplexity.ai, which gives sourced answers.
For example, it gave me the following answer to your question, which is the correct one:
https://www.perplexity.ai/search/i-have-a-gameobject-named-play-ZYVNV7G7S9qKZKLISWKb0A
Have a nice day
Please consider leaving a
review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Posts: 3
Threads: 2
Joined: Nov 2024
Thanks,
I'll give that a try.