FairyGUI.ColorFilter.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        public void Update()
        {
            Material mat;
            if ((_target is Image) || (_target is MovieClip))
                mat = _target.graphics.material;
            else
                mat = _target.paintingGraphics.material;
            if ((object)mat != null)
            {
                mat.SetMatrix("_ColorMatrix", _shaderMatrix);
                mat.SetVector("_ColorOffset", _offset);
            }
        }

Usage Example

示例#1
0
 static public int Update(IntPtr l)
 {
     try {
         FairyGUI.ColorFilter self = (FairyGUI.ColorFilter)checkSelf(l);
         self.Update();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.ColorFilter::Update