Skip to content

Instantly share code, notes, and snippets.

@z3t0
Created July 9, 2016 20:46
Show Gist options
  • Save z3t0/16990e5298a211a0dd23a8c242edd434 to your computer and use it in GitHub Desktop.
Save z3t0/16990e5298a211a0dd23a8c242edd434 to your computer and use it in GitHub Desktop.
This sets the Transform of the new gameobject to RectTransform
consoleView = new GameObject();
consoleView.layer = 5; // UI
consoleView.name = "ConsoleView";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment