#Referencing a prefab
1 messages · Page 1 of 1 (latest)
What does that mean?
I just found something online about using the file path for the reference, so I'll use that
If that's using AssetDatabase, that's editor-only.
what exactly does that mean?
Which part are you failing to understand
"editor only"
You will not be able to build the game if you use the AssetDatabase in runtime code
I have no idea why you want to reference things by path
I can't seem to reference them with GameObject.Find or with FindWithTag
Because they are not in the scene
Assets need to be referenced into the scene via a direct reference, or via an asset bundle, which Addressables would handle for you
the simplest way is to just drag and drop the prefab into a serialized reference
as far as I know that doesn't work with runtime references