Skip to content

Instantly share code, notes, and snippets.

@kodai100
Created December 14, 2016 07:16
Show Gist options
  • Save kodai100/2371ad77a052f983c7168dc4c76c45cb to your computer and use it in GitHub Desktop.
Save kodai100/2371ad77a052f983c7168dc4c76c45cb to your computer and use it in GitHub Desktop.
void OnGUI() {
int w = Screen.width / 2;
int h = Screen.height / 2;
int s = 512;
GUI.DrawTexture(new Rect(w - s / 2, h - s / 2, s, s), tex);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment