FairyGUI.NTexture.NTexture C# (CSharp) Method

NTexture() public method

public NTexture ( Texture texture, Rect region ) : System.Collections.Generic
texture UnityEngine.Texture
region UnityEngine.Rect
return System.Collections.Generic
        public NTexture(Texture texture, Rect region)
        {
            root = this;
            nativeTexture = texture;
            _region = region;
            uvRect = new Rect(region.x / nativeTexture.width, 1 - region.yMax / nativeTexture.height,
                region.width / nativeTexture.width, region.height / nativeTexture.height);
        }

Same methods

NTexture::NTexture ( NTexture root, Rect region ) : System.Collections.Generic
NTexture::NTexture ( Texture texture ) : System.Collections.Generic
NTexture::NTexture ( Texture texture, float xScale, float yScale ) : System.Collections.Generic