- Home /
Instantiate referencing problem
I am making a tile based map where I instantiate the tiles at the start, the prefabs of the tiles reference a script, but when the objects are instantiated the script is no longer referenced in the copies.
Answer by I_Am_Err00r · Jul 10, 2019 at 07:36 PM
Do these tile prefabs have the correct scripts in them? Also, I think if you instantiate something and it is disabled at Start, all those functions in start don't get called.
If you do in fact have the scripts on the instantiated items, then the script that calls the instantiation could have an event attached so that it runs a the reference through a listener to all the prefabs you just instantiated.
Here is a video that I hope explains this easily: https://www.youtube.com/watch?v=mC_yUEnGQXM
Your answer
Follow this Question
Related Questions
store instantiated in Array. c# 1 Answer
Problem when setting variable in an instantiated gameobject 0 Answers
instatiate gameobject after 1 second 1 Answer
How to tell the number of instantiated object 2 Answers
Instantiate a GameObjet C# 2 Answers