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

Uncaught TypeError: setTextureRect is not a function

$
0
0

@alchimya wrote:

Working with sprites and textures, when I use the setTextureRect() function (e.g. mySprite.setTextureRect(cc.Rect(0, 0, w, h));) I get the error:

Uncaught TypeError: mySprite.setTextureRect is not a function

Where am I going wrong?
Many thanks,
Dom

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



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