Sign in to follow this  

How to change texture of SimpleRope mesh?

Recommended Posts

I have tried to change the texture of SimpleRope mesh  by mesh.texture = "new texture" at run time... But it's not changing. Even I have tried by mesh.material.texture as well. Both didn't work for me.

Can anyone please help?

Share this post

Link to post
Share on other sites

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

Share this post

Link to post
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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.