Currently whenever I want to, for example, instantiate a prefab, in my code I will put something like
public GameObject birdPrefab;
then in the inspector drag the prefab from my Assets>Prefab folder onto the variable. I was curious if there is a way to code this in my script. Something like
public GameObject birdPrefab = Assets\Prefabs\birdPrefab.prefab;
I’m sorry if this is really basic, and I’m just overlooking it, or looking in the wrong places, but I can’t find an answer.
I figured it would be something simple like that. Now I feel silly having had to ask. Haha. Thank you very much.
– Kodoka