Created
December 23, 2016 20:40
-
-
Save drawcode/d2265dd233533514141c70b8109851a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code (CSharp): | |
// Somewhere at line 3345 in method GenerateColorToTargets() | |
else if(GetComponent<CanvasRenderer>()) | |
{ | |
colors = new Color[1,3]; | |
colors[0,0] = colors[0,1] = GetComponent<CanvasRenderer>().GetColor(); | |
} | |
Code (CSharp): | |
// Somewhere at line 4128 in method ApplyColorToTargets() | |
else if(GetComponent<CanvasRenderer>()) | |
{ | |
GetComponent<CanvasRenderer>().SetColor(colors[0,2]); | |
} | |
Code (CSharp): | |
// Somewhere at line 4150 in method ApplyColorToTargets() | |
else if(GetComponent<CanvasRenderer>()) | |
{ | |
GetComponent<CanvasRenderer>().SetColor(colors[0,1]); | |
} | |
Example call to fade out a child image of the Canvas GameObject: | |
iTween.ColorTo(GameObject.Find("Canvas").transform.Find("Image").gameObject, new Color(0.0F,0.0F,0,0F), 1.0F); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment