Unity5.6b2ã§è¿½å ãããTreeViewã使ã£ã¦ã¿ã
2016å¹´12æ20æ¥ã«Unity5.6b2ããªãªã¼ã¹ããã¾ããã
ãã®ãã¼ã¸ã§ã³ã§ããªã¼é層ã表ç¾ããããã®TreeViewã®æ©è½ã追å ããã¦ãã¾ãã
ãªãªã¼ã¹ãã¼ãããã
Editor: TreeView IMGUI Control, which can display hierarchical data that can be expanded and collapsed. Additionally it lets you create list views and multi-column tables for Editor tools.
ãã®TreeViewã¯ãä»ã¾ã§ãã¨ã©ã«ãã¼ã¦ã£ã³ãã¦ã§ä½¿ããã¦ããæ©è½ã§ããä»ã¾ã§å é¨ã®ã¿ã®æ©è½ã ã£ããã®ãã¦ã¼ã¶ã¼ãæ±ããããã«ãªã£ãã¨ãããã¨ã§ãã
ä¸ã®å³ã¯ãã¨ã©ã«ãã¼ã¦ã£ã³ãã¦ã§ãããã®ããã«é層ç¶æ ã§GUIã表示ããããã®æ©è½ãTreeViewã§ãã
TreeViewã使ã£ã¦ã¿ã
ã§ã¯æ©éãTreeViewã使ã£ã¦ã¿ã¾ãããã
TreeViewã«ã¤ãã¦ã¯ãã¹ã¯ãªãããªãã¡ã¬ã³ã¹ã«è©³ããæ²è¼ããã¦ãã¾ãããã£ããã¨èªã¿è§£ãã¦ããã¾ãããã
TreeView ã§å¿ è¦ãªã¯ã©ã¹
TreeViewã§ã¯ï¼ã¤ã®ã¯ã©ã¹ãå¿ è¦ã§ãã
ã¯ã©ã¹ | 説æ |
---|---|
TreeView | |
TreeViewItem | TreeViewã«è¡¨ç¤ºããè¦ç´ |
TreeViewState | TreeViewãTreeViewItemã®ç¶æ ã管çããã¯ã©ã¹ |
ã¨ãããã使ã£ã¦ã¿ãï¼ã·ã³ãã«ãªä½æä¾ï¼
TreeViewã¯ã©ã¹ã¯æ½è±¡ã¯ã©ã¹ã§ããã¾ãã¯TreeViewã¯ã©ã¹ãç¶æ¿ãã ExampleTreeView ã¯ã©ã¹ãä½æãã¾ãã
using UnityEditor.IMGUI.Controls; public class ExampleTreeView : TreeView { public ExampleTreeView(TreeViewState state) : base(state) { } protected override TreeViewItem BuildRoot() { throw new System.NotImplementedException(); } }
BuildRoot ã¯ããªã¼é層ã®ã«ã¼ãã¨ãªãè¦ç´ ãä½æããããã®ã¡ã½ããã§ãã BuildRootã¡ã½ããå ã«æ¬¡ã®ã³ã¼ãã追å ãã¾ãã
protected override TreeViewItem BuildRoot() { var root = new TreeViewItem(id: 1, depth: -1, displayName: "ã«ã¼ã"); var parent = new TreeViewItem(id: 2, depth: 0, displayName: "親ãã®ï¼"); root.children = new List<TreeViewItem> { parent, new TreeViewItem(id: 3, depth: 0, displayName: "親ãã®ï¼"), }; parent.children = new List<TreeViewItem> { new TreeViewItem(id: 4, depth: 1, displayName: "åä¾"), }; return root; }
BuildRootã¡ã½ããå ã®å¦çãå³ã«ããã¨ãããªæãã
åè¦ç´ ã«ã¦ãã¼ã¯ãªIDï¼idï¼ã¨ã¤ã³ãã³ãã®æ·±ãï¼depthï¼ã¨è¡¨ç¤ºåï¼displayNameï¼ãè¨å®ãã¦ãã¾ãã
ããã§ãTreeViewItemã®æºåãã§ããã®ã§æ¬¡ã¯TreeViewã®è¨å®ã«ç§»ãã¾ãã
ã¾ãã¯ãé©å½ãª EditorWindow ãä½æãã¾ãããã
using UnityEditor; public class ExampleEditorWindow : EditorWindow { [MenuItem("Window/ExampleEditorWindow")] static void Open() { GetWindow<ExampleEditorWindow>(); } }
ãã㦠OnEnable ã¡ã½ããå 㧠TreeViewState 㨠ExampleTreeView ãªãã¸ã§ã¯ããçæãã¾ãã ãã®éã« TreeView ã®åæåã®ããã« Reload ãå¼ã³åºãã¦ããã¾ãã
private TreeViewState state; private ExampleTreeView treeView; void OnEnable() { state = new TreeViewState(); treeView = new ExampleTreeView(state); treeView.Reload(); }
ãã㦠TreeView ã OnGUI ã¡ã½ããå ã§å¼ã³åºãã¾ãã
void OnGUI() { treeView.OnGUI(new Rect(0, 0, position.width, position.height)); }
ãã㧠TreeView ã表示ããããã®æºåãã§ãã¾ããã次ã®ã³ã¼ãã¯ExampleEditorWindowã®å®å ¨ãªã³ã¼ãã§ãã
using UnityEditor; using UnityEditor.IMGUI.Controls; using UnityEngine; public class ExampleEditorWindow : EditorWindow { [MenuItem("Window/ExampleEditorWindow")] static void Open() { GetWindow<ExampleEditorWindow>(); } private ExampleTreeView treeView; private TreeViewState state; void OnEnable() { state = new TreeViewState(); treeView = new ExampleTreeView(state); treeView.Reload(); } void OnGUI() { treeView.OnGUI(new Rect(0, 0, position.width, position.height)); } }
ã«ã¼ãã¨ãã¦è¨å®ãã TreeViewItem ãªãã¸ã§ã¯ãã¯è¡¨ç¤ºãããªãã®ã§æ³¨æãã¦ãã ããã
ãã¡ãããã«ã¼ã½ã«ã§é¸æãã§ãã¾ãããã¼ãã¼ãã«ãã移åãå¯è½ã§ãã
æå¤ã¨é«æ©è½
ããªã¼é層ã§è¡¨ç¤ºããã ããã¨æãããä»ï¼ã¤ã®æ©è½ãããã¾ãã
æ¤ç´¢æ©è½
ä»åä½æãããµã³ãã«ã使ç¨ããå ´åã treeView.searchString ã«æ¤ç´¢æåãä»£å ¥ããã ãã§æ¤ç´¢æ©è½ã使ããã¨ãã§ãã¾ãã
void OnGUI() { treeView.searchString = EditorGUILayout.TextField(treeView.searchString); treeView.OnGUI(new Rect(0, 20, position.width, position.height)); }
ãã«ãã«ã©ã æ©è½
HTMLã® table ã¨ããã°æ³åããããã§ããããããã¼ãã«ã®ãããã¼ã®ãããªãã®ãä½æãããã¨ãã§ãã¾ãã
#Unity3d 5.6 beta 2 is out! Includes this: "TreeView, can display hierarchy data that can be expanded & collapsed" https://t.co/DxmhqdHc03 pic.twitter.com/oyUhQeekiR
— Christopher Pope (@CreativeChris1) 2016å¹´12æ21æ¥
ãããã¼ã¯èªç±ã«ãªãµã¤ãºãããã¨ãã§ãã¾ããã¾ããã«ã©ã ãã¨ã«ã½ã¼ãããããã¨ãã§ãã¾ããï¼æ¬¡ã®å³ã¯ã½ã¼ãå¦çãæ¸ãã¦ãªããããã½ã¼ãããã¦ãã¾ããï¼
ãã®ãã«ãã«ã©ã æ©è½ã¯ãã¾ã éçºæ®µéã®ãããªæãããã¦ãããä¸è¨ã®ãã¤ã¼ãã®ãããªå®è£ ãããå ´åã¯èªåã§TreeViewãæ¡å¼µããªããã°ããã¾ããã
ã¾ã¨ã
ããªã¼é層ã表ç¾ããããã®TreeViewãã¤ãã«å®è£ ï¼æ£ç¢ºã«ã¯å ¬éï¼ãããä»ã¾ã§ EditorGUILayout.Foldout 㨠EditorGUI.indentLevel ãé§ä½¿ãã¦ä½æãã¦ããããªã¼é層ã楽ã«ä½æã§ããããã«ãªãã¾ãããã§ãããæå¤ã¨é«æ©è½ãªãã使ãããªãã®ã«ã¯æéããããããã§ãã
TreeViewã«ã¤ãã¦ãã詳ããæ å ±ãç¥ãããå ´åã¯ããã©ã¼ã©ã ãåç §ãã¦ãã ããããµã³ãã«ããã¸ã§ã¯ããããã®ã§ã¾ãã¯ãã¡ããåããã¦ã¿ãã®ãããã§ãããã
New TreeView API - https://forum.unity3d.com/threads/new-treeview-api.447169/
ããããã¨ã¯ã»ã«ã®ä»£ããã«ä½¿ããªãã¦ãã¨ãèããããããªããå°çãè¦ããã
Unityã¾ã¨ããä½æããããã«ã±
Unityç³»ã®æè¡ã¨ã³ããªã¼ãã¾ã¨ããWebãµã¼ãã¹ãUnityã¾ã¨ããããªãªã¼ã¹ãã¾ããã
Unityã¾ã¨ãã®ä½¿ãæ¹ã¯å¥ã¨ã³ããªã¼ã§ç´¹ä»ãã¦ãã¾ãã
Unityã¾ã¨ããä½æããããã«ã±
Unityã¾ã¨ããä½ãã«è³ã£ãçµç·¯ãã¤ãã¤ãã¨æ¸ãã¦ããã¾ãã
ããã«ã±ãã®ï¼
Unityã®å¼·ã¿ã®ï¼ã¤ã¨ãã¦ãUnityã¯ãããããªãæããã£ã¦ãã°ã°ãã°æ å ±ãè¦ã¤ããããããããã¾ãã ãã®å¼·ã¿ã¯é常ã«ååã§ãç¾å ´ã§ã¯ä½åº¦ãå©ãããã¦ãããã¨æãã¾ãã
Unityãæµè¡ãã ãã¦ããï¼å®ç¾©ãé£ãããã©2012å¹´ãããããï¼ï¼å¤ãã®ã¨ã³ããªã¼ãå ¬éããã¦ãã¾ããã å¤ãã®ã¨ã³ããªã¼ãããã¾ãããææ¥ãæµããã»ã©æ å ±ã®æ£ç¢ºæ§ã¯å¤±ããã¦ããã¾ãã ããã§ç§ãã¡ã¯ãGoogleã®æ¤ç´¢ãªãã·ã§ã³ï¼ã¤ã¾ãã°ã°ãåï¼ãé§ä½¿ãã¦ç®çã®ã¨ã³ããªã¼ãè¦ã¤ãã¦ãã¾ãã
ã°ã°ãåãé«ã人ã§ããã°åé¡ããã¾ããããã¿ããªãã°ã°ãåãæã£ã¦ããããã§ãããã¾ããã
ã°ã°ãåããªãã¦ãæ å ±ãè¦ã¤ããããå ´æãå¿ è¦ã ï¼
ããã«ã±ãã®ï¼
RSSãªã¼ãã¼ã使ã£ã¦æ¥ã Unityç³»ã®æ å ±ãåéãã¦ãã¾ãããã§ãããUnityã«é¢ä¿ã®ãªãã¨ã³ããªã¼ã¾ã§æ¾ã£ã¦ãã¦ãã¾ãæ å ±ã®éåã«å°ãæéãããã£ã¦ãã¾ã£ã¦ãã¾ããã¾ããæ°ããªãã£ã¼ããæ¢ãã¦ç»é²ããã®ãé¢åã§ãã
ããã«ã±ãã®ï¼
Unityåå¿è ãæ å ±åéã§ããå ´æï¼ã¨ããããããè¦ã¨ãã°OKï¼ã¨ããã¨ãããããã¾ãããï¼ã¡ãªã¿ã«è³ªåã§ããå ´æã¯ãUnityã¦ã¼ã¶ã¼å©ãåãæããéè«ã¯ãUnityã¦ã¼ã¶ã¼éè«æããªã©ãããï¼ãã©ã·ã¥ã¼ã«ããã°ã¯ç¥
ããã«ã±ãã®ï¼
Unityã¦ã¼ã¶ã¼ãã¿ã¼ã²ããã¨ããä½åãä½ã£ããã©åç¥ã§ããå ´æãå°ãªãï¼Unityã¦ã¼ã¶ã¼éè«æã«æãã¦çµããï¼
ããã«ã±ãã®ï¼
ç確ã«ããã°ã«ã¦ã¼ã¶ã¼ãèªå°ãã¦ãã¢ã¯ã»ã¹æ°ãããã¬ã¼ã®ããæ°åä¸ãçãããã
ããã«ã±ãã®ï¼
ã¿ããªãä¸æ¯ã«ãªãæ¯æ¥ä½¿ã£ã¦ãããWebãµã¼ãã¹ãä½ãããã
ã¾ã¨ã
ã¾ã ã¾ã ããã«ã±ãæããã¨ã¯ããã¾ãããUnityã¦ã¼ã¶ã¼ã ãã§ã¯ãªãã¨ã³ããªã¼ãæ¸ãã¦ããããã¬ã¼ã®çããã®ãã¨ãååã«èãã¦Webãµã¼ãã¹ãä½æãã¦ããã¤ããã§ããï¼ã¾ã¨ãç³»ã£ã¦äººã®ææç©ãé£ããã®ã«ãã¦ããã¿ããã§è¤éãªæ°æã¡ã«ãªãããããã§ããã...ï¼
Unityã¾ã¨ãã®ä½¿ãæ¹
Unityç³»ã®æè¡ã¨ã³ããªã¼ãã¾ã¨ããWebãµã¼ãã¹ãUnityã¾ã¨ããããªãªã¼ã¹ãã¾ããã
Unityã¾ã¨ããä½æããã«è³ã£ãããã«ã±ã¯å¥ã¨ã³ããªã¼ã§ç´¹ä»ãã¦ãã¾ãã
Unityã¾ã¨ãã¨ã¯
ãããä¸ã«ãããUnityç³»ã®ã¨ã³ããªã¼ã®ã¿ãåéãã¦æ²è¼ãããã¥ã¬ã¼ã·ã§ã³ãµã¤ãã§ãã æ¯æ¥ãUnityç³»ã®ã¨ã³ããªã¼ãç»é²ããã¦ããã®ã§æ å ±åéãããã®ã«å½¹ç«ã¡ã¾ãã
Unityã¾ã¨ãã®ä½¿ãæ¹
ç°¡åãªä½¿ãæ¹ãåç»ã§èª¬æãã¦ãã¾ããï¼Youtubeã¨ãã³ãã³åç»ã«ã¯åãåç»ãã¢ãããã¦ãã¾ãï¼
ææ°ã¨ã³ããªã¼
ææ°ã®ã¨ã³ããªã¼ã¯ããããã¼ã¸ã«æ²è¼ããã¦ãã¾ããæ¯æ¥ç´25ã¨ã³ããªã¼ã追å ããã¦ãã¾ãã
ã©ã³ãã³ã°
ãä»æ¥ããé±éããæéããå ¨æéãã¨ããç¯å²ã§ã©ã³ãã³ã°ãæ²è¼ãã¦ãã¾ãã
https://unity-matome.com/ranking/today
ã«ãã´ãª
ã¨ã³ããªã¼ã¯ã«ãã´ã©ã¤ãºããã¦ãã¾ããç¹å®ã®åéã®ã¨ã³ããªã¼ãè¦ããã¨ãã«ä½¿ç¨ãã¦ãã ããã
ï¼ä¾ï¼ã¢ã»ãããã³ãã« - https://unity-matome.com/category/91409d34660e22362bcb2384
æ¤ç´¢
ç¹å®ã®ã¯ã¼ãã§ã¨ã³ããªã¼ãæ¤ç´¢ãããã¨ãã§ãã¾ãã
ï¼ä¾ï¼ã¢ãã£ãªã¨ã¤ã - https://unity-matome.com/search/ã¢ãã£ãªã¨ã¤ã
RSS
ææ°ã¨ã³ããªã¼ã»ã«ãã´ãªãã¨ã«RSSãç¨æãã¦ãã¾ããæ®æ®µRSSãªã¼ãã¼ã使ã£ã¦ãã人ã¯æ¯éRSSãç»é²ãã¦ã¿ã¦ãã ããã
ææ°ã¨ã³ããªã¼RSS - https://unity-matome.com/feed ï¼ä¾ï¼ã¨ãã£ã¿ã¼æ¡å¼µRSS - https://unity-matome.com/category/f7a8b8e02b96a6ba28908eb0/feed
Twitterã¢ã«ã¦ã³ã
Twitterã¢ã«ã¦ã³ããç¨æãã¦ãã¾ãã ææ°ã¨ã³ããªã¼ãç»é²ãããã¨ãã«ã¤ã¶ããããä»çµã¿ã§ãã
Unityã¾ã¨ãã®ä»å¾
ã²ã¨ã¾ããçããã«ä½¿ã£ã¦ããã ããæä½ã©ã¤ã³ã¯ã¯ãªã¢ããããªãã¨ããæãã§ããã§ãã¾ã ã¾ã ãããããã¨ã¯ããã¾ãã
ããã®æ å ±å¤ãã§ãããã¿ã³
åç½®ã: ç§ãã©ã¤ã¿ã¼ã¨ãã¦æ å ±ãçºä¿¡ãã¦ããã®ã§ãã®æ©è½ã¯å¿è¦ããã
ææ¥ãæµãããã¨ã«æ å ±ã¯å¤ããªã£ã¦ãã¾ãã¾ããå¤ããªã£ãæ å ±ãæ®ãã¦ããã¨ããããèªãã ã¦ã¼ã¶ã¼ã¯å¤ãæ å ±ãè¦ãã¦ãã¾ããåé¡è§£æ±ºã®ããã«å¤ãã®æéãå²ãã¦ãã¾ãããããã¾ãããå¤ãæ å ±ã¯å½¹ã«ç«ã¤ã©ãããæ¯ã«ãªã£ã¦ãã¾ãå¯è½æ§ãããã¾ãã
ãã®ãªã¹ã¯ãæ¸ããããã«ããã¦ã¼ã¶ã¼ããããã®ã¨ã³ããªã¼ã®æ å ±ã¯å¤ãããã¨ããå ±åãããããã¨ã§Unityã¾ã¨ãã«ã¯æ²è¼ããªãä»çµã¿ãä½ãããã¨æã£ã¦ãã¾ãã
ããã¯ãã¼ã¯ï¼ãæ°ã«å ¥ãï¼æ©è½
Twitterã¢ã«ã¦ã³ã(@unity_matome)ãè¦ã¦ããã¨ããã¤ã¼ãããæ°ã«å ¥ãã«ãã¦ãã人ãå¤ãè¦ããã¾ããããã¯ãããå¾ã§è¦ããã¨ããã¨ãã¦ããã¯ãã¼ã¯ã¨ããããã§ãããã
RSSã«ã¹ã¿ãã¤ãºæ©è½
Unityç³»ã®ã¨ã³ããªã¼ã®ã¿ãé ä¿¡ãããRSSã¯ä¾¿å©ã§ãããããã«ãã£ã«ã¿ãªã³ã°ãã¦ç¹å®ã®æ å ±ã«çµãããã
ãã°ã¤ã³æ©è½
ããã¯ãã¼ã¯ï¼ãæ°ã«å ¥ãï¼æ©è½ãRSSã«ã¹ã¿ãã¤ãºæ©è½ãå®ç¾ããã«ã¯ãã¦ã¼ã¶ã¼æ å ±ã¨ç´ä»ããæ¹ã管çãããããªãã¾ãã
æ°ãã価å¤ã®ããã³ã³ãã³ãä½æ
ãããããã¥ã¬ã¼ã¿ã¼ããããããªããããããªæ å ±ãéãã¦æ´çãã¦æ°ããã³ã³ãã³ããçã¿åºããã¨ãããããããã¥ã¼ããªã¢ã«ã¾ã¨ããã¨ããã¢ã»ãããã³ãã«ã¾ã¨ããã¨ãã
è±èªã®æ å ±ãæ¥æ¬èªã§ãå±ããã§ãããããã§ãããUnity AnswersãUnity Forumã«ã¯ãå®æ å ±ããã£ã±ãã§ãã
ã¾ã¨ããã¼ã¸
Neverã¾ã¨ãã¿ããã«ã¾ã¨ããã¼ã¸ãä½æããããQiitaã¿ããã«ç·¨éãªã¯ã¨ã¹ãã¨ãåºããããã«ãå¾ã ã¯ã¦ã¼ã¶ã¼ãèªç±ã«ä½æã§ããããã«ãªããã¨ãããªã
åºåæ æä¾
åºåæ ã販売ãã¾ãããUnityã«é¢ããåºåãã®ã¿ãæ²è¼ãããã¨æã£ã¦ãã¾ãã
ä¾ãã°ããUnityç³»ã®ãã©ã°ã¤ã³ä½æãã§ãã£ãããUnityã¤ãã³ãåç¥ãã§ãã£ãããé常ã®åºåé ä¿¡ã§ã¯å¹æã®èãé¨åããUnityã¾ã¨ããªãæãå¹çããåºåé ä¿¡ãããã¨ãå¯è½ã«ãªãã¾ãï¼Unityã¦ã¼ã¶ã¼ããè¦ã¦ãªãã§ããããï¼ã
ä»ã®ã¨ãããã¤ã³ãã¬ãã·ã§ã³/ã¯ãªãã¯æ°ãã«ãã課éä½å¶ã¨ãã¢ãã£ãªã¨ã¤ããã«ããä½å¶ãèãã¦ãã¾ãã
æãç°¡åã§åé¡ãèµ·ãã«ããã®ããã¢ãã£ãªã¨ã¤ãããæ¢ã«Unityç³»ã®åºåãé ä¿¡ãã¦ãã人ï¼ä¼æ¥ï¼ã¯ A8.net ãªã©ã®ã¢ãã£ãªã¨ã¤ããµã¼ãã¹ã使ç¨ãã¦ããããããã¾ããã
ããããã§ããã°ãç§ãã¢ãã£ãªã¨ã¤ããµã¼ãã¹çµç±ã§ã¢ãã£ãªã¨ã¤ãURLãåå¾ããUnityã¾ã¨ãã«ãã¤ã³ãã£ã¼ãåºåãã¨ãã¦æ²è¼ãããã¨ãã§ãã¾ãã
ã¢ãã£ãªã¨ã¤ãçµç±ã§ã®åºåã¯ãã§ã«ç¨¼åãã¦ãããç¾å¨ã¯ Techacademy ãã¾ã®åºåãé ä¿¡ããã¦ãã¾ãã
ããã¢ãã£ãªã¨ã¤ãçµç±ã§Unityã¾ã¨ãã«åºåãè¼ãããï¼ã¨ããæ¹ã¯ ãåãåã - https://unity-matome.com/contact ããé£çµ¡ããé¡ããã¾ãã
ãã¤ã³ãã¬ãã·ã§ã³/ã¯ãªãã¯æ°ãã«ãã課éä½å¶ãä»æ´ãã¦ãã¾ãã
ç¾å¨ãåºåé ä¿¡ã·ã¹ãã ãä½æãã¦ãããTwitteråºåã®ããã«èª°ã§ãåºåé ä¿¡ãã§ããããã«ãããã¨æã£ã¦ãã¾ãã
ãã ãåºåé ä¿¡ã·ã¹ãã ã¯ãéå¨ãã«é¢ãããã®ãªã®ã§å®è£ ã«çµæ§æéããããããã§ããæ¢åã®åºåé ä¿¡ã·ã¹ãã ãæ¢ãã¦ã¿ã¾ãããããããçµæ§é«é¡ã§å人ã§ã¯æãåºããªããã§ããããä½ãããæ å ±ãªãããªã
ã¾ã¨ã
Unityã¾ã¨ãã¯ä»å¾ãé²åãã¦ããã¾ããUnityã¦ã¼ã¶ã¼ã«ã¨ã£ã¦ç¡ãã¦ã¯ãªããªããµã¤ãã«ãã¦ãããããªã¨æã£ã¦ãã¾ãã®ã§ãããããé¡ããã¾ãã
ä½ãããã¾ãããããåãåã https://unity-matome.com/contact ãããé£çµ¡ããé¡ããã¾ãã
ã¨ãã£ã¿ã¼æ¡å¼µå ¥éã®Webçãç¡åå ¬éãã¾ãã
ã¨ãã£ã¿ã¼æ¡å¼µå ¥éã2015å¹´ã®å¤ã³ãã§è²©å£²éå§ãã¦ãã7ã¶æãéãã¾ããã
æè¿ã®å£²ä¸ã«ã¤ãã¦èªãã¨ãä»ã¾ã§ã§700é¨ã»ã©å£²ãã¾ãããä»ã¯1æ¥ã«1é¨ã¯å£²ãã¦ãã¾ãã 売ä¸ã¹ãã¼ããéåãã¦ãã¦ããä»ãå¿ è¦ã¨ãã¦ãã人ãã¡ã«ã¯ããç¨åº¦æã«æ¸¡ã£ãã®ã§ã¯ãªããã¨æãã¾ãã
ãã®ã¾ã¾ããã¾ã«åç¥ãã¦æ¸ç±ã®å£²ä¸ãä¸ããã®ãããã§ãããç§ã¯ãããããã¨ãã£ã¿ã¼æ¡å¼µã触ããã¨ãã¦ããäºåè»ã®ã¿ãªãããã«åãã¦æ å ±ãå ¬éãããã¨ã«ãã¾ããã
ãã¨ãã£ã¿ã¼æ¡å¼µã§æ©ãã ããã®ãµã¤ãï¼ãã¿ãã㪠Googleã§æ¤ç´¢ããã¨ããã®æ¬ã®ãã¼ã¸ããããããç¶æ ãåµãããããã¨æãã¾ãã
Webçã®ç¡åå ¬éã«ãã£ã¦å¤ãã®äººãã¡ã®å½¹ã«ç«ã¦ããã¨ãé¡ã£ã¦ããã¾ãã Unityã®ãã¼ã¸ã§ã³ã¢ããã¯é©ç°çãªéãã§è¡ããã¦ããã¾ããããã®æ¬ã¯ Unity5.3 ã«å¯¾å¿ãã¦ããã®ã§ã¾ã ã¾ã å½¹ã«ç«ã¡ã¾ããã
ããã§ãé»åæ¸ç±ã®PDFçã¯è²©å£²ãç¶ç¶ãã¾ãã®ã§ãããããã£ããè³¼å ¥ãé¡ããã¾ãï¼ ã»ãã¨ãã«å½¹ã«ç«ã£ãæã«ã§ãè²·ã£ã¦ãã£ã¦ãã ããã
ãã«ãå¾ã«Hierarchyã¦ã£ã³ãã¦ã®ããªã¼ã®ééããã¹ã¦ãªã»ããããã¦ãã¾ãåé¡ãã©ãã«ããã
ãã«ãå¾ã«Hierarchyã¦ã£ã³ãã¦ã®ããªã¼ç¶æ ããã¹ã¦éãã¦ãã¾ãåé¡
以ä¸ã®ä»æ§ã«ãã£ã¦èµ·ãã£ã¦ããåé¡
- ãã¨ã©ã«ãã¼ã®ããªã¼ç¶ã®ééç¶æ ã¯ã¤ã³ã¹ã¿ã³ã¹IDã§ç®¡çããã¦ããã
- ã·ã¼ã³ãã¡ã¤ã«ãéãç´ãã¨ã²ã¼ã ãªãã¸ã§ã¯ãã®ã¤ã³ã¹ã¿ã³ã¹IDã¯å¤æ´ããã
- ãã«ãæã«ã¯èªåã§ã·ã¼ã³ãéããªãããã«ããã¦ããããã«ãå¾ã«ã¯ãã«ãç´åã®ã·ã¼ã³ãéãã¦ããç¶æ ã ããæ£ç¢ºã«ã¯å度éãç´ããã·ã¼ã³ã
対ç
HierarchyWindowHelper ã£ã¦ããã®ä½ã£ãã
ãã¨ã©ã«ãã¼ã¦ã£ã³ãã¦ããããªã¼æ å ±ãåå¾ãã¦ãããªã¼ç¶ã®ééç¶æ ããªã»ããããããã«ãå¾ã«å度é©ç¨ããã
BuildSettingsããè¡ããã«ãã¯å¶å¾¡åºæ¥ãªãã®ã§ããBuildPipeline.BuildPlayerãã使ã£ã¦ã©ãã«ã対å¦ããã
UnityEditorä¸ã§EditorWindowãã¨ã«ã¹ã¯ã·ã§ (Mac)
ãããªãµãã«EditorWindowã¾ããã¨ã¹ã¯ã·ã§ãæ®ã
表示ããã¦ããEditorWindowå ¨é¨ã¹ã¯ã·ã§
ScreenCapture.Capture<EditorWindow> ();
表示ããã¦ããHogeWindowã¹ã¯ã·ã§
ScreenCapture.Capture<HogeWindow> ();
ãªããEditorWindow.positionãããã¦ãå¤æã£ã¦ãæããããã ãã©ãªãã§ã ã... (Unity4.6.2)
ããï¼Application.LoadLevelAdditiveAsyncã§è¤æ°ã·ã¼ã³ã®éåæãã¼ããå¯è½ã«ãªã£ã¦ãï¼
æ¤è¨¼ã§è©¦ããã³ã¼ã
Unity4.5ã§ã¯asyncOperation2.progressã¯0ãè¿ãç¶ãããã©ãUnity5ã ã¨0.9ãè¿ãã
using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { AsyncOperation asyncOperation1; AsyncOperation asyncOperation2; IEnumerator Start () { asyncOperation1 = Application.LoadLevelAdditiveAsync (1); asyncOperation1.allowSceneActivation = false; while (asyncOperation1.progress < 0.9f) { yield return new WaitForEndOfFrame (); } Debug.Log ("done: asyncOperation1"); asyncOperation2 = Application.LoadLevelAdditiveAsync (2); asyncOperation2.allowSceneActivation = false; while (asyncOperation2.progress < 0.9f) { Debug.Log (asyncOperation2.progress); yield return new WaitForEndOfFrame (); } Debug.Log ("done: asyncOperation2"); } void OnGUI () { if (GUILayout.Button ("Additive")) { asyncOperation1.allowSceneActivation = true; asyncOperation2.allowSceneActivation = true; } } }