Quantcast
Channel: Questions in topic: "dynamically"
Viewing all articles
Browse latest Browse all 152

Dynamically Loading asset path issues

$
0
0
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!

Viewing all articles
Browse latest Browse all 152

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>