- Home /
Is there a way to set components in a prefab before it is Instantiated?
I have a prefab that is essentially items and they are Instantiated randomly at different points, or at least that is what I want. Objects in my prefab depend on certain things like a text object and other things, is there a way to have them set before I Instantiate them?
What do you mean by "Objects in my prefab depend on certain things like a text object and other things."?
I think I figured out my problem. I was meaning that I have a public variable on an object in my prefab for another object that has to be there when I instantiate a prefab in my script. I just manually add the values to the variables that I need when they are needed.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to associate prefab with a variable in C#? 1 Answer
Only instantiate if clear space beside prefab 1 Answer
How to create new tail in a simple 3D Snake 0 Answers
How do i Instantiate a prefab with specific assests included 3 Answers