Skip to content

Instantly share code, notes, and snippets.

@andybak
Created November 6, 2019 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andybak/540bb6cf2f6ceada6387cc673f971498 to your computer and use it in GitHub Desktop.
Save andybak/540bb6cf2f6ceada6387cc673f971498 to your computer and use it in GitHub Desktop.
using UnityEngine;
public ChangeStuff()
{
gameobject.GetComponent<MeshRenderer>().material.color = Color.red;
transform.localScale = new Vector3(5,5,5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment