Unity ‚¨ƒ‡‚£‚‹¼µ

download Unity ‚¨ƒ‡‚£‚‹¼µ

of 68

  • date post

    13-Aug-2015
  • Category

    Technology

  • view

    1.251
  • download

    2

Embed Size (px)

Transcript of Unity ‚¨ƒ‡‚£‚‹¼µ

  1. 1. Unity
  2. 2. /68 Twitter@baba_s_ Qiitababa_s 2
  3. 3. /68 3
  4. 4. /68 4
  5. 5. /68 http://baba-s.hatenablog.com/ 5
  6. 6. /68 1. 2. Hierarchy 3. Project 4. Scene 5. 6
  7. 7. /68 Unity 5 7
  8. 8. /68 1. 2. Hierarchy 3. Project 4. Scene 5. 8
  9. 9. /68 9
  10. 10. /68 1. Editor 2. 3. 10
  11. 11. /68 1. 2. Hierarchy 3. Project 4. Scene 5. 11
  12. 12. /68 Hierarchy 12
  13. 13. /68 Hierarchy 13
  14. 14. /68 Hierarchy 14
  15. 15. /68 Hierarchy 15
  16. 16. /68 Hierarchy 16
  17. 17. /68 Hierarchy 17
  18. 18. /68 Hierarchy 18
  19. 19. /68 Hierarchy NGUIUIWidget depthGUI 19
  20. 20. /68 Hierarchy 20
  21. 21. /68 Hierarchy Editor 21
  22. 22. /68 Hierarchy 22 using UnityEditor; using UnityEngine; public class ExampleClass { ... }
  23. 23. /68 Hierarchy EditorApplication.hierarchyWindowItemOnGUI 23 [InitializeOnLoadMethod] static void Example() { EditorApplication.hierarchyWindowItemOnGUI += OnGUI; } static void OnGUI( int instanceID, Rect selectionRect ) { ... }
  24. 24. /68 Hierarchy EditorUtility.InstanceIDToObject 24 var obj = EditorUtility.InstanceIDToObject( instanceID ); var go = obj as GameObject; if ( go == null ) { return; } ...
  25. 25. /68 Hierarchy GUI.Toggle 25 var pos = selectionRect; pos.x = pos.xMax - 16; pos.width = 16; var newActive = GUI.Toggle( pos, go.activeSelf, string.Empty ); go.SetActive( newActive );
  26. 26. /68 Hierarchy 26 using UnityEditor; using UnityEngine; public static class ExampleClass { [InitializeOnLoadMethod] static void Example() { EditorApplication.hierarchyWindowItemOnGUI += OnGUI; } static void OnGUI( int instanceID, Rect selectionRect ) { var obj = EditorUtility.InstanceIDToObject( instanceID ); var go = obj as GameObject; if ( go == null ) { return; } var pos = selectionRect; pos.x = pos.xMax - 16; pos.width = 16; var newActive = GUI.Toggle( pos, go.activeSelf, string.Empty ); go.SetActive( newActive ); } }
  27. 27. /68 Hierarchy http://baba-s.hatenablog.com/entry/2015/04/28/121747 http://baba-s.hatenablog.com/entry/2015/04/27/101143 http://baba-s.hatenablog.com/entry/2015/04/29/133141 http://baba-s.hatenablog.com/entry/2015/05/04/171926 http://baba-s.hatenablog.com/entry/2015/05/05/103647 27
  28. 28. /68 Hierarchy http://baba-s.hatenablog.com/entry/2015/05/08/114119 http://baba-s.hatenablog.com/entry/2015/05/09/122713 NGUIUIWidgetdepthGUI http://baba-s.hatenablog.com/entry/2015/05/25/125552 28
  29. 29. /68 1. 2. Hierarchy 3. Project 4. Scene 5. 29
  30. 30. /68 Project 30
  31. 31. /68 Project 31
  32. 32. /68 Project 32
  33. 33. /68 Project 33
  34. 34. /68 Project 34
  35. 35. /68 Project 35
  36. 36. /68 Project 36
  37. 37. /68 Project Editor 37
  38. 38. /68 Project 38 using UnityEditor; using UnityEngine; public class ExampleClass { ... }
  39. 39. /68 Project EditorApplication.projectWindowItemOnGUI 39 [InitializeOnLoadMethod] static void Example() { EditorApplication.projectWindowItemOnGUI += OnGUI; } static void OnGUI( string guid, Rect selectionRect ) { ... }
  40. 40. /68 Project AssetDatabase.GUIDToAssetPath 40 var path = AssetDatabase.GUIDToAssetPath( guid ); path = path.Replace( /, ); ...
  41. 41. /68 Project GUI.Button 41 var pos = selectionRect; pos.x = pos.xMax - 16; pos.width = 16; if ( !GUI.Button( pos, "!" ) ) { return; } ...
  42. 42. /68 Project Process.Start 42 Process.Start( "explorer.exe", "/select," + path );
  43. 43. /68 Project 43 using System.Diagnostics; using UnityEditor; using UnityEngine; public class ExampleClass { [InitializeOnLoadMethod] static void Example() { EditorApplication.projectWindowItemOnGUI += OnGUI; } static void OnGUI( string guid, Rect selectionRect ) { var pos = selectionRect; pos.x = pos.xMax - 16; pos.width = 16; if ( !GUI.Button( pos, "!" ) ){ return; } var path = AssetDatabase.GUIDToAssetPath( guid ); path = path.Replace( "/", "" ); Process.Start( "explorer.exe", "/select," + path ); } }
  44. 44. /68 Project http://baba-s.hatenablog.com/entry/2015/06/21/193838 http://baba-s.hatenablog.com/entry/2015/05/07/103743 http://baba-s.hatenablog.com/entry/2015/06/18/101052 http://baba-s.hatenablog.com/entry/2015/06/22/090000 http://baba-s.hatenablog.com/entry/2015/05/13/224633 44
  45. 45. /68 Project http://baba-s.hatenablog.com/entry/2015/05/16/115549 45
  46. 46. /68 1. 2. Hierarchy 3. Project 4. Scene 5. 46
  47. 47. /68 Scene 47
  48. 48. /68 Scene 48
  49. 49. /68 Scene Scene Game 49
  50. 50. /68 Scene 50
  51. 51. /68 Scene Editor 51
  52. 52. /68 Scene 52 using UnityEditor; using UnityEngine; public class ExampleClass { ... }
  53. 53. /68 Scene SceneView.onSceneGUIDelegate 53 [InitializeOnLoadMethod] static void Example() { SceneView.onSceneGUIDelegate += OnGUI; } static void OnGUI( SceneView sceneView ) { ... }
  54. 54. /68 Scene GUI.WindowFunction 54 GUI.WindowFunction func = id => { if ( GUILayout.Button( "Shaded" ) ) { // TODO } else if ( GUILayout.Button( "Wireframe" ) ) { // TODO } }; ...
  55. 55. /68 Scene GUILayout.Window 55 var rect = new Rect( 8, 24, 80, 0 ); GUILayout.Window( 1, rect, func, string.Empty );
  56. 56. /68 Scene 56 using UnityEditor; using UnityEngine; public class ExampleClass { [InitializeOnLoadMethod] static void Example() { SceneView.onSceneGUIDelegate += OnGUI; } static void OnGUI( SceneView sceneView ) { GUI.WindowFunction func = id => { if ( GUILayout.Button( "Shaded" ) ) {} else if ( GUILayout.Button( Wireframe" ) ) {} }; var rect = new Rect( 8, 24, 80, 0 ); GUILayout.Window( 1, rect, func, string.Empty ); } }
  57. 57. /68 Scene http://baba-s.hatenablog.com/entry/2015/06/19/103708 http://baba-s.hatenablog.com/entry/2015/05/11/100630 SceneGame https://github.com/anchan828/unitejapan2014 57
  58. 58. /68 1. 2. Hierarchy 3. Project 4. Scene 5. 58
  59. 59. /68 QHierarchy Favorites Tab[s] UNITY EDITOR ENHANCEMENTS 59
  60. 60. /68 QHierarchy https://www.assetstore.unity3d.com/jp/#!/content/28577 60
  61. 61. /68 QHierarchy 61
  62. 62. /68 QHierarchy 62
  63. 63. /68 Favorites Tab[s] https://www.assetstore.unity3d.com/jp/#!/content/4237 63
  64. 64. /68 Favorites Tab[s] 64
  65. 65. /68 UNITY EDITOR ENHANCEMENTS http://www.tenebrous.co.uk/?portfolio=unity-editor-enhancements 65
  66. 66. /68 Hierarchy Project Scene 66
  67. 67. /68 Unity http://www.slideshare.net/shotababa359/unity-32294734 67
  68. 68. /6868