I need to get the path of a static gameObject during runtime to load it when I click on it in order to get a new dynamic one.
I wanted to use AssetDatabase.getAssetPath() but it’s not working (void return).
I’ll after that use GameObject = Instantiate(Resources.Load(path)); which is working
could you help me please?
Resources.Load loads from any Resources folder in your project assets;
will be loaded through Resources.Load(“MyFile”);
will be loaded through Resources.Load(“Images/MyFile”)