Skip to content

Instantly share code, notes, and snippets.

@gmYusuf
Created April 30, 2021 06:16
Show Gist options
  • Save gmYusuf/663b114787e5590fc3eaec902b574781 to your computer and use it in GitHub Desktop.
Save gmYusuf/663b114787e5590fc3eaec902b574781 to your computer and use it in GitHub Desktop.
Material newMat = Resources.Load("Materials/Material/NewYear", typeof(Material)) as Material;
ball.GetComponent<MeshRenderer>().material = newMat;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment