Why would this not create correctly if auxWpnName is correct and the location is correct?
auxWpn = Instantiate(Resources.Load("auxWpns/" + auxWpnName));
Why would this not create correctly if auxWpnName is correct and the location is correct?
auxWpn = Instantiate(Resources.Load("auxWpns/" + auxWpnName));
What are you trying to do?
-Jonas Rasmussen
if you’re trying to get the path “resources/auxWpens/” then yes, it should be what you want.
As stated above but even clearer: This method will only work if the file is in a folder called “Resources”. You can have subfolders and it’ll still work.
Thanks,
Sorry. It was late and I had misnamed the directory. I missed a folder.
Cheers!!!