GUIãããã¹ã表示ã§æ¥æ¬èªã使ãæ¹æ³ã¨ãã©ã³ãåè¾¼ã¿ã«ã¤ãã¦
ãã¿ã³ãªã©ã®GUIä¸ã§ä½¿ãæ¹æ³
æ®éã«ããã°ã©ã å ã«ãããªæãã«æ®éã«æ¥æ¬èªã使ã£ã¦è¨è¿°ããã°OKã§ããæåã³ã¼ãã¯UTF-16ã§ä¿åãã¦ä¸ããã
GUI.Button (Rect (5, 5, 100, 100), "ãã¹ããã¿ã³");
ãã©ã³ãã®åè¾¼ã¿ã«ã¤ãã¦
ãã©ã³ããã¢ããªå
ã«åè¾¼ãã§æå®ã®ãã©ã³ãã§æç»ãããå ´å㯠GUI Skin ã使ãã¾ãã GUI Skin ã¯Projectãã¥ã¼ã®Createãã追å åºæ¥ã¾ãã
ãã©ã³ãã¯TrueTypeãã©ã³ãã®ã¿å¯¾å¿ãã¦ãã¾ãããã¡ã¤ã«ã«ã¯ã¡ããã¨æ¡å¼µå .ttf ãä»ãã¦ããªãã¨æ£ããå¦çããã¾ããã®ã§æ³¨æãã¦ä¸ããã
ãªãããã©ã³ãã¯ã»ã¨ãã©ã®ãã®ãã¢ããªå ã¸ã®åè¾¼ã¿ã許å¯ãã¦ããªãã¾ããããã©ã³ãã®åè¾¼ã¿ãæ´»ç¨ããããå ´åã¯ãã®æ§ãªä½¿ç¨ã«ã¤ãã¦ã許å¯ãã¦ãããã©ã³ãã使ãæ§ã«ãã¾ããããä¾ãã°ãã¡ãã§ç´¹ä»ãããã©ã³ããªã©ãå©ç¨å¯è½ã§ãã
ã¢ããªå ã¸ã®åè¾¼ã¿ãªã©ãå¯è½ãªã©ã¤ã»ã³ã¹ã§é å¸ããã¦ããæ¥æ¬èªãã©ã³ã - å¼·ç«ã§é²ã
http://d.hatena.ne.jp/nakamura001/20110615/1308153809
Unityã«åãè¾¼ãã ãã©ã³ãã¯ãã®ã¾ã¾ãã©ã³ããã¡ã¤ã«ãèªã¿è¾¼ãã§æç»ãã Dynamic 以å¤ã«ããã¯ã¹ãã£ã«æ¸ãããæ¹æ³ãé¸æåºæ¥ã¾ãã
ã¡ãªã¿ã«ã Dynamic ããµãã¼ããã¦ãã®ã¯Desktop platforms(MacãWindows)ã ãã¿ããã§ãã
ããã°ã©ã ã¯ãã®æ§ã«ãªãã¾ãã
var gui : GUISkin; function OnGUI () { GUI.skin = gui; GUI.Button (Rect (5, 5, 100, 100), "ãã¹ããã¿ã³"); }
GUI Textã®å ´å
GUI Textã®å ´åã¯Inspectorã§è¨å®ãã¾ãã Text ã«ç´æ¥æ¥æ¬èªã§å
¥åããã°è¨å®åºæ¥ã¾ããä¸æãå
¥ååºæ¥ãªãå ´åã¯ã¨ãã£ã¿ãªã©ã§æ¸ãããã®ãã³ãããã¦ã¿ã¦ä¸ããã Font ã§èªåãåãè¾¼ãã ãã©ã³ãã«å¤æ´ããäºãåºæ¥ã¾ãã
3D Textã®å ´å
3D TextãGUI Textã®å ´åã¨åæ§ã«Inspectorã§è¨å®åºæ¥ã¾ãã
èªåã試ããç¯å²ã ã¨3D Textã¯åãè¾¼ãã æ¥æ¬èªãã©ã³ããé¸æããã¨æ£ããæç»ããã¾ããã§ããã
ãããã©ã«ããã©ã³ãã®å ´åã
ãåãè¾¼ãã æ¥æ¬èªãã©ã³ãã®å ´åã
(2011/06/18 追è¨)
ã³ã¡ã³ãæ¬ã«ã¦é ããã id:dearna ããã®ã¢ããã¤ã¹ã試ãã¦è¦ãã¨ããæ£ããæç»ãåºæ¥ãæ§ã«ãªãã¾ããã
æé ã¨ãã¦ã¯3D Textã®ããã®Materialãé¸æãç´ãã ãã§ãã
ãããªæãã«ã¡ããã¨è¡¨ç¤ºããã¾ããã
(追è¨ããã¾ã§)
ä»åã®ãµã³ãã«ã¯こちらã§è©¦ãã¾ããã½ã¼ã¹ãã¡ã¤ã«ã¯こちらã
é¢é£æ å ±
Unity - Font
http://unity3d.com/support/documentation/Components/class-Font.html
Selected U3D Japanese Font - 俺ããã£ããé¨ã ï¼
http://d.hatena.ne.jp/dearna/20110419/1303207066
Unityã§æ¥æ¬èªãã©ã³ãã使ãï¼ã¢ãã¤ã«ç·¨ï¼ - Radium Software
http://radiumsoftware.tumblr.com/post/4107015526