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

How programmatically change texture of node in Cocos Creator 1.1.2

$
0
0

@suravi wrote:

How programmatically change texture of node in Cocos Creator 1.1.2?

when I use cocos studio I did like this

var textureNormal = cc.textureCache.addImage("res/reel_normal.png");
mainscene.node.getChildByName("image").setTexture(textureNormal);

How can I do this in cocos creator?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17103

Trending Articles



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