- Home /
How to assign prefab at runtime?
I plan to add a script component at runtime to a gameObject, but the script requires 2 prefabs that are stored in my resource folder. Is there a way I can dynamically attach those prefabs to the script I plan to add as a component to the gameObject?
Thanks! :)
Comment
Your answer
Follow this Question
Related Questions
How to make reference from prefab to variable via C#/JavaScript? 1 Answer
how do I assign a prefab's child to another prefab's script's public variable? 1 Answer
Assign different materials to a range of same prefab? 1 Answer
How to disable referenced Prefabs being preallocated in memory?? 0 Answers
Unity Programmatically Link Prefab 2 Answers