Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17079

How to change spriteFrame of 500+ nodes (or prefabs)?

$
0
0

@gadapchetvoi wrote:

Hi all
I'm going to build a map by dynamically creating many tiles (sprites or prefabs) with same spriteFrame but different position & rotation at the game's onLoad().

In middle of game I want to change all the tiles' images (spriteFrame or anything) at once. But I think to loop through all tiles & change every single spriteFrame is absolutely kinda stupid and low-performance way.

Can anyone please help me with a better way? Thanks a lot !

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17079

Trending Articles



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