Asset Store®ç‚®Unity‹¼µ…¥é–€

download Asset Store®ç‚®Unity‹¼µ…¥é–€

of 42

  • date post

    14-Jun-2015
  • Category

    Technology

  • view

    13.959
  • download

    0

Embed Size (px)

Transcript of Asset Store®ç‚®Unity‹¼µ…¥é–€

  • 1. Asset Store UnityTech Buzz Unity(2013/01/31)

2. (@mi_kami) Web(MK Games) : http://mkgames.me eclipse() UnityFlockey THE (Unity)SimpleData 3. Unity in (2 : 2/17) http://atnd.org/events/36103 (2) 4. global game jam 2013 global game jam 2013 8(2) 5. ggj2013 GPS http://globalgamejam.org/2013/ 6. 1 Min Life 1ggj2013() http://globalgamejam.org/2013/1minlife 7. Unity 8. Unity PositionRotation 1PrefabGameObject& or PositionRotation PrefabGameObject 9. Unity : (Editor) 10. UnityAssetStore Unity 11. 1. Unity2. UnityEditor3. Editor4. AssetStore 12. Unity(SimpleData) UnityCore Data ManagerGameObject... ( 13. 1Unity 14. GameObjectGameObject GameObjectPosition(0, 0, 0) GameObject...etc () Editor 15. 1. 2. HierarchyCreate 3. Inspector4. ProjectCreate 16. 1. MenuItem2. %()[MenuItem ("MyTools/Edit/LineUp %g")]static void CreateWizard (){ Object obj = Selection.activeObject; if(PrefabUtility.GetPrefabType(obj)== PrefabType.Prefab) { .... }} 17. HierarchyCreate [MenuItem GameObject/Create Other/...] Inspector MonoBehaviour[ContextMenu Do Something] ProjectCreate [MenuItem Assets/Create/...] 18. SelectionactiveObjectobjects Unity GameObject / Prefab / / ... Objectis 19. GameObject Selection.gameObjectsGameObject transform/[MenuItem ("MyTools/Edit/Position/Move To(0,0,0) %u")]public static void Clear() { Vector3 v = new Vector3(0, 0, 0); GameObject[] objs = Selection.gameObjects; foreach(GameObject go in objs) { ((GameObject)go).transform.position = v; }} 20. PrefabGameObject PrefabGameObject Selection.activeObjectPrefab() PrefabObject PrefabUtility 21. PrefabUtilityPrefab PrefabPrefab PrefabUtility.GetPrefabType()PrefabType Instantiate(prefab)GameObject[MenuItem ("MyTools/Edit/CreateObject %g")]static void CreateObject (){ Object obj = Selection.activeObject; if (PrefabUtility.GetPrefabType (obj) == PrefabType.Prefab) { GameObject go = (GameObject) Instantiate(selectedPrefab); go.transform.position = new Vector3(0, 0, 0); }} 22. 2UnityEditor 23. Editor EditorGUI EditorWindow Init()EditorWindow.GetWindow() public class TestWindow : EditorWindow { [MenuItem ("Window/Test Window %v")] static void Init () { TestWindow window = (TestWindow)EditorWindow.GetWindow (typeof(TestWindow)); } } 24. EditorWindow public void OnSelectionChange() ProjectHierarchy public void OnGUI() / 25. EditorGUI GUI3 GUI : UI GUILayout : UI EditorGUILayout : EditorUI(Inspector)GUILayout GUI EditorGUILayout 26. GUI EditorGUILayout.TextField(Object Name, variable); TextField GUIpublic class TestWindow : EditorWindow{ public string hoge; static void OnGUI () { hoge = EditorGUILayout.TextField(Object Name,hoge); }} 27. Editor Editor Project OnGUI() Event.current.keyCode 28. OnGUI() Event.current.mousePosition Event.current.type EventType.ContextClick : EventType.MouseDown : 29. 3Editor 30. Editor 1. 2. 3. 5. Undo/Redo 4. 31. Asset : CutScene Editor 32. OnGUI()GUI.BoxGUI.Box(new Rect(px, py, width, height), " "); GUI.BoxGUI.color List 33. OnGUI()GUI.DrawTexture(new Rect (px, py, width, height),texTriangle); SimpleDataUIDrawTexture 34. GUI.DrawLine 35. SimpleData // 36. = () UnityInspector SceneGameObject.scenePrefab.prefab 37. 21. MonoBehaviourpublic 2. [System.Serializable] public SimpleData21Prefab 38. Undo Asset StoreUndo Undo/Redo RegisterUndo 1Undo [MenuItem ("Edit/Transform/Same Position %#x")] static void Same () { Transform act = Selection.activeTransform; foreach (Transform t in Selection.transforms) { Undo.RegisterUndo (t, act.name + " same position"); t.position = act.position; } Debug.Log (" move to " + act); } 39. & Undo.SetSnapShotTargetUndo Undo.CreateSnapShot() Undo.RestoreSnapShotCreateSnapShot() Undo.RegisterSnapshotUndo() 40. 4AssetStore 41. Asset Store Guidline Asset Store http://unity3d.com/asset-store/docs/submission-guidelines.html 42. Asset Store Asset StoreAssetStore ToolsDL Asset Store+Submit Asset Store()