Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save openroomxyz/6459680ea9d552fad0f827643d96e63f to your computer and use it in GitHub Desktop.

Select an option

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?
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