I’ve looked over and read most of the documentation, and I’ve worked a bit with Unity, though nothing all that big just yet. I originally had been using C++ with Vanilla OpenGL, and then I used the Irrlicht Engine for a time, and for the past few years, I’ve primarilly used GameMaker. But now I’ve been thirsting for real 3d and GM doesn’t provide that very well, so I’m looking more into Unity, but there are a few things I’d like to clarify so my mindset can adjust.
I understand in general how the GameObjects work, and the component system as well. But, I’m not understanding this detail. If I’m let’s say creating an Asteroids game, and I have the camera following the ship around(because the game space is bigger than a single screen size area). I would drag that ship into a variable on the camera’s “follow” script so that said script knows what to follow. But then that ship gets destroyed and recreated off of a prefab after the explosion. I understand that I’d need to have the camera check if the ship exists in order to follow it, but then once it gets recreated, would that variable suddenly update to reflect the “new” ship, or will I have to manually search for it via the “FindObject…” functions?
Also, since I mention those FindObject… type functions, I’m curious about things. For example, when you create objects using Instantiate off of prefabs, the name gets “Clone” attached to it, which would be fine, but when searching for objects by name, will it not find the “clones” because of it?
Lastly, I’m looking to replace the timeline system that GameMaker has. It basically allows you to do things(functions or Drag Drop) at set time intervals, all nicely set up in the IDE. It also allows them to be paused, restarted, reversed, etc… Does Unity have something similar. I’ve seen the CoRoutine system, and I think I could create this result using a function that yields every other line, but it seems to be the “hard” way to do it. I’ve also seen something about animation events. I didn’t get into that much detail, but does this Animation system do what I’m looking for. I’d at least need to be able to call some code at set moments in time with an easy set up as possible.
Sorry for the wall of text guys. I’ve looked at tutorials and documentation, but none of them seem to explain what I’m needing. Also, none of them have a “coming from GameMaker” point of view, and I think that would actually be a money maker If there is a tutorial/article that better explains the GameObject system, etc… please feel free to point me to it.
Thanks in advance.