undroid Posted May 5, 2021 Share Posted May 5, 2021 Hi! My question is: how change fill color in rect by click ? Here is example: https://www.pixiplayground.com/#/edit/tAELlHd5HzEhDh7OcK_sL And second question: maybe someone has a code example where touchmove events are triggered, in the example above. PS: Thanks! And sorry for simple questions Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 5, 2021 Share Posted May 5, 2021 You cannot change anything inside graphics, you can just "clear" and refill it. However, there's a "tint" property. Make white rectangle, then change "tint" whenever you want. Alternatively, use Sprite with "Texture.WHITE" as texture, and tint it. undroid 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.