Created
December 14, 2016 07:16
-
-
Save kodai100/2371ad77a052f983c7168dc4c76c45cb to your computer and use it in GitHub Desktop.
This file contains 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
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