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!