UnityEngine.CanvasRenderer.GetColor C# (CSharp) Method

GetColor() public method

Get the current color of the renderer.

public GetColor ( ) : Color
return Color
        public Color GetColor()
        {
            Color color;
            INTERNAL_CALL_GetColor(this, out color);
            return color;
        }

Usage Example

コード例 #1
0
 static public int GetColor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.CanvasRenderer self = (UnityEngine.CanvasRenderer)checkSelf(l);
         var ret = self.GetColor();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
All Usage Examples Of UnityEngine.CanvasRenderer::GetColor