1
NGUI 3 Support / Dynamically change UIPanel TextureMask Offset value
« 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?
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?