Question by
Zoophish · Nov 25, 2015 at 05:59 PM ·
loadresources.loaddynamicallypaths
Dynamically Loading asset path issues
Hi guys, I have a problem when trying to change a path to some sprites in unity. My code is:
var spritePath : string = "Items\" + itemsList[i];
(ItemsList is a list using Unity generics and "itemsList[i]" returns what's inside that part of the list)
I seem to get the error: expecting "", found "\r". Does anyone have a fix for this? Thanks!
Comment
Your answer
Follow this Question
Related Questions
Resources vs referanced prefabs 0 Answers
Is it better to keep the scenes amount small? 0 Answers
How to load my text file 1 Answer
Issues with Instantiate and loading sprites. 0 Answers
Save game - Tile based game 0 Answers