Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: eco_bach on January 30, 2017, 02:44:49 PM
-
Ok, so i am successfully masking using a texture mask. Now I need to dynamically change the offset of this mask.
From another class I have a reference to my UIPanel as
public UIPanel overlayPanel;
and then a reference to the actual Texture2D Texture Mask as overlayPanel.clipTexture;
So, how do I change the x offset of this Texture2D thru code?
-
Clip texture is always tied to the panel. You can adjust the panel's rect, which will effectively move the clipped texture.