Last active
October 27, 2015 16:34
Revisions
-
mindryu renamed this gist
Nov 10, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ label.transform.SetParent(transform,false); // Canvas = Screen Space - Overlay label.transform.position = RectTransformUtility.WorldToScreenPoint(Camera.main, pos); -
mindryu created this gist
Nov 10, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ // Canvas = Screen Space - Overlay label.transform.position = RectTransformUtility.WorldToScreenPoint(Camera.main, pos); // Canvas = Screen Space - Camera label.transform.position = RectTransformUtility.WorldToScreenPoint(Camera.main, Camera.main.ScreenToWorldPoint(pos));