How could I put a prefab into a field of a game object using editor API in Unity?
I have a game object. It has a GameObject
field. I can drag and drop a prefab from my assets into that field.
Now I want to take the prefab (I have a path to it in my code) and put it into that game object field using editor API. Is it possible somehow?
I need this to automate some of my scene setup.