FairyGUI.GImage.ConstructFromResource C# (CSharp) Method

ConstructFromResource() public method

public ConstructFromResource ( ) : void
return void
        public override void ConstructFromResource()
        {
            sourceWidth = packageItem.width;
            sourceHeight = packageItem.height;
            initWidth = sourceWidth;
            initHeight = sourceHeight;
            _content.scale9Grid = packageItem.scale9Grid;
            _content.scaleByTile = packageItem.scaleByTile;
            _content.tileGridIndice = packageItem.tileGridIndice;

            _content.texture = packageItem.texture;

            SetSize(sourceWidth, sourceHeight);
        }

Usage Example

 static public int ConstructFromResource(IntPtr l)
 {
     try {
         FairyGUI.GImage      self = (FairyGUI.GImage)checkSelf(l);
         FairyGUI.PackageItem a1;
         checkType(l, 2, out a1);
         self.ConstructFromResource(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GImage::ConstructFromResource