Created
April 19, 2020 19:10
-
-
Save openroomxyz/6459680ea9d552fad0f827643d96e63f to your computer and use it in GitHub Desktop.
Unity : How to set a color on basic Material pragmatically in classic RP?
This file contains hidden or 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
| GameObject g = ..... | |
| g.GetComponent<Renderer>().material.color = new Color(color.r, color.g, color.b, color.a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment