- Home /
Sprites loaded if putted on Inspector variable?
Im making a match-3 game. I have a single class for all candies, as they're the same except for the sprite (and the name). So I have a public Sprite[] candySprites in the Candies class where I store all the possible sprites that a candy can have. If I create 40 candies in a scene, and when I create them I do something like GetComponent().sprite = candySprite[3]; is just loaded that sprite in memory or all sprites from the array are loaded? And, as I have a lot of candies in the scene, those sprites are loaded multiple times (1 time for every candy) or, for example the sprite "Chocolate", is loaded 1 time and all candies look in the same memory slot when they need the "Chocolate" sprite?
Your answer
Follow this Question
Related Questions
Translucent sprites appear solid 0 Answers
Unity Game View won't refresh my sprites 1 Answer
Crop/Mask a Sprite on runtime 0 Answers
How to instance custom sprite shader? 0 Answers