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! :slight_smile:

Use the Resources.Load method.