æ ªå¼ä¼ç¤¾ãã«ã·ãªã³ã·ã¹ãã ã®ã¡ã³ãã¼ãéããUnityããJavaããã®æè¡ç話é¡ãããèªç¤¾éçºã®ã¢ããªã®å®£ä¼ã¨ãã¨ãã®ããã°ã§ããã»ãã¨æ°ã¾ã¾ã«ããããã¨æãã¾ããæ´æ°æ¥ã¯æ¯é±ãæãæ¨ã§ã£ãï¼ ã¢ã³ã¹ã©ã好è©ã§ãï¼ãããã¨ããããã¨ãï¼ ãã¨å°ãã§1ä¸DLããã¾ã£ãï¼ï¼ ç¾å¨ã¯æ¥å¹´ï¼ï¼ï¼æã«ãªãªã¼ã¹ããããã¨æã£ã¦ãã RPGãéçºä¸ï¼RPGéçºä¸ï¼å¤§äºãªãã¨ãªã®ã§2åè¨ãã¾ããã ããã¾ãé¢ç½ããã®ã«ãªãã¾ãã®ã§æ¥½ãã¿ã«ãã¦ãã ããï¼ ã¢ã³ã¹ã©ã®æ°æ©è½ãèããªããæ°ããã¢ããªã®ãªãªã¼ã¹ï¼ ã¯ãã¾ãiphoneã«ã¢ã³ã¹ã©ã移æ¤ãããã»ã»ã» ä½ã«æãä»ãããããã®ãæ©ãã§ããåå ã§ãã ãã¦ãä»æ¥ã¯NGUIã«ããããã³ã°ã¿ããã«ã¤ãã¦ã§ãã ã¾ãç°¡åãªã®ã§ã¿ãªãããã§ã«å®è£ ããã¦ããã¨æãã¾ããã ä»åãã³ã°ã¿ãããå®è£ ãããã¨ãã¦ããªã«ãç°¡åã«ããæ¹æ³ã¯ãªãã㨠ãã¼ããå çã«èããã®ã§
InputFieldã¯ããã¹ãããã¯ã¹çãªãã®ã InputFieldã®GameObjectã§ãåã«Textã¨ããGameObjectãããã âStarting Valueâã¸åæå¤ãè¨å®ãããã¨ãã§ããã ãããã空æåã«ããã¨ç©ºæåã§ã¯ä¸æ¸ãããªãã å¤èªä½ã¯ãtextããããã£ã§åå¾ãå¯è½ã InputField i = GetComponent<InputField> (); Debug.Log (i.text); NGUI for Unity ä½è : Charles Bernardoffåºç社/ã¡ã¼ã«ã¼: Packt Publishingçºå£²æ¥: 2014/01/24ã¡ãã£ã¢: Kindleçãã®ååãå«ãããã°ãè¦ã
ã¼ã¡ã¼ã¡ã¨NGUIã«ã¤ãã¦åå¼·ããã¦ãã¾ãã æ¨æ¥ãã©ããã¦ãç§ã使ã£ã¦ããNGUIã®ãã¼ã¸ã§ã³ã«ãããã¥ã¼ããªã¢ã«ãè¦ã¤ãããªãåè¦å «è¦ãã¦ããã®ã§ããã ãªãã¨Youtubeã«NGUI3.0.7ã®tutorialãããã®ãè¦ã¤ãã¦ãããããã£ã¦ã¾ããã ãã以åã®ãã®ã¯ä½ãããæ¹ãéã£ã¦ããã®ã§ããããã®ãã¥ã¼ããªã¢ã«ã¯ç§ãä»å©ç¨ãã¦ãã3.0.8ã¨ã»ã¼åãããã«å©ç¨ã§ãã¾ããã ä»åã¯ãã®ä¸ã§ãGridã«ã¤ãã¦ããã°ã§ç´¹ä»ããããã¨æãã¾ãã ããããã¨èª¿ã¹ãä¸ã§ãGridã¯Spriteãªã©ãæ´åããããããã«å©ç¨ããã¢ãã ã¨ãããã¾ããã ããã使ãã°ããã¡ãã¡ãã¸ã·ã§ã³ãæ°ã«ããªãã¦ãèªåçã«è¤æ°ã®Spriteãæ´åããã¦ããã¾ãã Gridã®ä½æ ä¸ã®ã¡ãã¥ã¼æ¬ããã[NGUI]->[Create]->[Grid]ã§ä½æããã¾ãã
UIRootã®ããããã£æ¦ç¥ Scaling Style : æ¡ç¸® PixelPerfect : åºæ¬çã«ãã®ã¾ã¾è¡¨ç¤ºãã FixedSize : 解å度ã®ç¸¦å¹ ã«åããã¦è¡¨ç¤ºãã FixedSizeOnMobiles : ã¢ãã¤ã«*1ãªãFixedSizeãã¢ãã¤ã«ä»¥å¤ã¯PixelPerfect Manual Height : FixedSizeã§ã®ã¿åç § Minimum Height : PixelPerfectã§ã®ã¿åç § Maximum Height : PixelPerfectã§ã®ã¿åç § åææ¡ä»¶ã¨ã㦠NGUI2.7 UIPanelã®ä¸å¿ã«è¿½å ããç»åï¼UISpriteï¼ã®è¡¨ç¤ºã®ããæ¹ãç¢ºèª PixelPerfectãè¨å®ããå ´å åºæ¬çã«æ¡ç¸®ããç»é¢ã®è§£å度ã§ãã®ã¾ã¾è¡¨ç¤ºãã 解å度ããå°ããç»åã¯ãã®ã¾ã¾å°ãã表示ããã 解å度ãã大ããç»åã¯è§£å度ã§åãåããã¦è¡¨ç¤ºããã ä¾
A8ã¨ã¯ãã¢ã«ãã¡8bitã®ã¿ã®æ å ±ãæã£ããã¯ã¹ãã£å½¢å¼ãã®ãã¨ããã©ã³ãã«ä½¿ããã¯ã¹ãã£ã«ã¯RGBå¤ããããªããã¨ãæ®ã©ãªã®ã§ãA8ã«ãã¡ããã°ãµã¤ãºã®åæ¸ã«ãªãã¨ããææ³ã®ç´¹ä»ã NGUIã§æ¥æ¬èªãªã©æåæ°ã®å¤ããã©ã³ãã使ãå ´åããã¯ã¹ãã£ãµã¤ãºã®è¥å¤§åã«æ©ã¾ããããã¨æãã¾ãã ãã ãæ¢ã«å¯¾çã¯ç¨æããã¦ãã¦ãPackedFontã¨ããããæ¹ãããã¾ãã ããã¯ãARGB4ãã£ã³ãã«ãA8Ã4ãã£ã³ãã«ã¨ãã¦æ±ãã¨ããæ¹æ³ã§ãã ç´¹ä»ã®è¨äºã¯Unityã®ä¼è¤ããã®ããã°ã«ãhttp://warapuri.tumblr.com/post/23352109465/ngui 詳細ã®åç»ã¯ããã§ãhttp://www.youtube.com/watch?v=dY6jQ7d2ius ãã ããã使ãã¨ãã©ããæåã®ç¸åããå½±ï¼OutlineãShadowï¼ã«ã¯é対å¿ã«ãªã£ã¦ãã¾ããããã N
NGUI ã§æåãæç»ããå ´åã«ã¯ Unity ãæ¨æºã§ä½¿ãããã©ã³ããã¡ã¤ã«ã«ããæç»ã¯ä½¿ãã¾ããã NGUI ã§ã¯ãããããããã©ã³ããä½æåºæ¥ããã¼ã«ãªã©ã使ã£ã¦ãããããããã©ã³ããä½æãããã®ãããããããã©ã³ãã使ã£ã¦æåãæç»ãã¾ãã ãã®è¨äºã§ã¯ BMFont(Bitmap Font Generator) 㧠NGUI åãã®ãããããããã©ã³ããä½ãæ¹æ³ã解説ãã¾ããããã¾ã§ä¸ä¾ã§ãã®ã§ãå®éã«ä½æ¥ããæã«ã¯ã²ã¼ã ã®é°å²æ°ãªã©ã«åããé©å®èª¿æ´ãã¦ä½¿ç¨ãã¦ä¸ããã ãããããããã©ã³ãã®ä½æ ã¾ãã¯ä½¿ç¨ãããã©ã³ããé¸æãã¾ããã¡ãã¥ã¼ãããOptionsãâãFont Settingsããé¸æãã¦ä¸ããã ä»åã¯ãã¿ãã¡ããããã©ã³ãã使ãäºã«ãã¾ãããã®ãã©ã³ãã¯ãã¡ããããã¦ã³ãã¼ãåºæ¥ã¾ãã ãã¡ãããããã§é¸æãããã©ã³ãã¯èä½æ¨©çã«åé¡ç¡ããã©ã³ã(ãããããã
Glyph Designer Glyph Designer - Angel Code Bitmap Font Editor - Like Hiero, bmGlyph - iPhone iPad iOS OSX Cocos2D Unity Sparrow Corona http://glyphdesigner.71squared.com/ Macã¢ã㪠AppStoreã§ã®è²©å£²ã¯ç¡ããå ¬å¼ãµã¤ãããè³¼å ¥ãå¤æ®µã¯$29.99 ã°ã©ãã¼ã·ã§ã³ã使ãã 使ãæ¹ã¯ãã¡ãã§è§£èª¬ãã¦ãã¾ãã bmGlyph bmGlyph | bitmap font generator for OSX http://www.bmglyph.com/ Macã¢ã㪠AppStoreã«ã¦è²©å£²(https://itunes.apple.com/jp/app/bmglyph/id490499048?mt=12) ææã¢ããªã
NGUIã®UIInputã¯ãã¼ãã¼ãå ¥åããããæã«ä½¿ãã³ã³ãã¼ãã³ãã â¡åç §URL UIInput iPhone keyboard input åæç¶æ ã ã¨æ¥æ¬èªãå ¥åã§ããªã NGUI3.5.8 UIInputã§å ¨è§(æ¥æ¬èª)ãæã¦ãªã | éçºã¨ã¬ã¸ã§ãã NGUIã®UIInputã使ã Hierachyãã¥ã¼ã«Inputç¨ã®ãªãã¸ã§ã¯ããä½ãã Widget Tool > Template Inputãé¸ã¶ > Backgroundç»åãé¸æ ãï¼ãAdd To â é ç® ã»Label ããã¹ãã表示ãããã²ã¼ã ãªãã¸ã§ã¯ã ã»Starting Value ã²ã¼ã èµ·åæã«Labelã§è¡¨ç¤ºãããå 容 ã»Saved As å¤ãå ¥ã£ã¦ããå ´åãååã«å ¥åããå 容ã表示ãããï¼ ã»Active Text Color ããã¹ãã«ã©ã¼ ã»Inactive Color å ¥åãã¦ãªãã¨ãã®æåè²
ãUnityåå¿è åãããªãã¸ã§ã¯ãã®è¦ªåé¢ä¿ãæä½ãã ããã«ã¡ã¯ãã«ã³ã§ãã ä»æ¥ã¯ããªãã¸ã§ã¯ãã®è¦ªåé¢ä¿ãã¹ã¯ãªããä¸ããæä½ããæ¹æ³ãç´¹ä»ããã㨠è¨äºãèªã ãUnityãè¶ ç°¡åã«ã¿ã¤ãã³ã°ã²ã¼ã 風ãã¯ã¼ã²ã¼ã¸ãå®è£ ããæ¹æ³ toshiroã§ãã æè¿ãæ¥åæéå¾ã«éçºã¡ã³ãã¼ã§ã1æéã§ã²ã¼ã ãä½ããããã²ã¼ã ã¸ã£ã è¨äºãèªã ãUnityãMonodevelopã®ã³ã¼ãæ´å½¢æ©è½ ããã«ã¡ã¯ãã«ã³ã§ãã å æ¥ãMonodevelopã®è£å®æ©è½ã«ã¤ãã¦æ²è¼ãã¾ããããä»ã«ã便 è¨äºãèªã ãUnityãæ¥åãæãããã«å転ããã toshiroã§ãã ããç¹ãä¸å¿ã«ãåãæãããã«ãªãã¸ã§ã¯ããå転ããããã¨ãããã¨ã¯ è¨äºãèªã ãUnityãPCã§WebViewObject.SetVisibility(false)ã§Unityãè½ã¡ãåé¡ã解決ããã¡ãã£ã¨ã ãç°¡å
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}