Jump to content

How to change texture of SimpleRope mesh?


Recommended Posts

I have a JSON file generated by Texture Packer. I'm getting texture from JSON file and trying to change it then It's not working.

I'm doing something like this: 

 this._paylineAnimation = new SkinFiriLottoSimpleRope(this._animationFrames[0].texturethis._points);
then with tween I'm changing the texture of  this._paylineAnimation.
 this._paylineAnimation.texture = this._animationFrames[this._frame].texture
Edited by abhishek4693
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...