Hello Jean,
-- sending an event to the newly instanciated prefab and tel it what is the gameobject reference it needs.
The newly instantiated prefab would be an explosion (unity prefab) that would take place at the location an airplane crashes. I'm not sure how to get that crash location – based on collision or trigger – to instantiate on that spot. Would I use a Get Vector 3? I haven't successfully used that yet so I'm not sure how.
Also, on a different object, I need to play a prefab animation based on a trigger event. Trying to work this out also.
Any help would be greatly appreciated.
Thanks a lot!
David
UPDATE: I tested Get Position (to instantiate at that position) and it seems to be working. Although it seems to instantiates in the center of the trigger object it's colliding with.
How would I make the instantiation location more accurate?
Thanks!