├── ProjectSettings ├── ProjectVersion.txt ├── AudioManager.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── TagManager.asset ├── TimeManager.asset ├── EditorSettings.asset ├── NetworkManager.asset ├── DynamicsManager.asset ├── GraphicsSettings.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── QualitySettings.asset ├── ClusterInputManager.asset ├── EditorBuildSettings.asset └── UnityConnectSettings.asset ├── Assets ├── 0x4d4147 │ ├── Notes │ │ ├── Scenes │ │ │ ├── Example.unity │ │ │ └── Example.unity.meta │ │ ├── README.txt.meta │ │ ├── Scenes.meta │ │ ├── Scripts.meta │ │ ├── Scripts │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ │ ├── NoteEditor.cs.meta │ │ │ │ ├── NotesEditorWindow.cs.meta │ │ │ │ ├── NoteEditor.cs │ │ │ │ └── NotesEditorWindow.cs │ │ │ ├── NoteBehaviour.cs.meta │ │ │ └── NoteBehaviour.cs │ │ └── README.txt │ └── Notes.meta └── 0x4d4147.meta ├── .gitignore ├── README.md └── LICENSE /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.1f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scenes/Example.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/Assets/0x4d4147/Notes/Scenes/Example.unity -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariosubspace/notes-for-unity/HEAD/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/README.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ca5713f3a4834dcf983c8d0dcbe2079 3 | timeCreated: 1500772287 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scenes/Example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3bff5d0be3d946958aa81b3fc8d328f 3 | timeCreated: 1500772314 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/0x4d4147.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef879064a72444cc49eb1cb28d61ea43 3 | folderAsset: yes 4 | timeCreated: 1500772021 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03005fa0727e84209af81cee0783a4ff 3 | folderAsset: yes 4 | timeCreated: 1500772028 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c63bb5ce3ed2940778c5a5d7586d4659 3 | folderAsset: yes 4 | timeCreated: 1500772326 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3851b28edcda04916910eca23d4c52ea 3 | folderAsset: yes 4 | timeCreated: 1500772868 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a28eee382daf41b4a7c6b7a36c74692 3 | folderAsset: yes 4 | timeCreated: 1500772036 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/README.txt: -------------------------------------------------------------------------------- 1 | Usage: 2 | 3 | 1) Add NotesBehaviour.cs to any GameObject in the scene and write your notes. 4 | 5 | 2) Go to "Window/Gather Notes" and click the "Refresh Notes" button to gather all notes in the scene. 6 | 7 | 3) Click on any note in the window to ping select the object with the note. -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/Editor/NoteEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0dbd3420640a0b4e9c6b0f478be769c 3 | timeCreated: 1500864199 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/NoteBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e42a32f436a64267b6a5739447fab68 3 | timeCreated: 1500772054 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/Editor/NotesEditorWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2a195dde50a54297a8096f1137af084 3 | timeCreated: 1500772063 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/NoteBehaviour.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | [AddComponentMenu("0x4d4147/NoteBehaviour")] 4 | public class NoteBehaviour : MonoBehaviour 5 | { 6 | [Space(10)] 7 | public NoteType type; 8 | 9 | [TextArea(1, 5), Space(10)] 10 | public string note; 11 | } 12 | 13 | public enum NoteType 14 | { 15 | Memo, 16 | ToDo, 17 | Bug 18 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | 30 | # Unity3D Generated File On Crash Reports 31 | sysinfo.txt 32 | 33 | # Builds 34 | *.apk 35 | *.unitypackage 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Notes for Unity 2 | 3 | ![Example image](https://github.com/0x4d4147/readme-images/blob/master/NotesForUnity/noteforunity-with-colors.JPG?raw=true) 4 | 5 | ### Usage 6 | 7 | **1)** Add a _NoteBehaviour_ Component to any GameObject in the scene, and enter some notes. 8 | **2)** Open _'Window > Gather Notes'_ in Unity's toolbar. Click the _'Refresh Notes'_ button to gather all notes in the scene. 9 | **3)** Click on any note in the _'Gather Notes'_ window to select the object in the scene and ping the object in the hierarchy. 10 | 11 | ## Releases 12 | 13 | [Get as Unity Package](https://github.com/0x4d4147/NotesForUnity/releases) 14 | 15 | ## License 16 | [MIT License (c) 2017](https://github.com/0x4d4147/NotesForUnity/blob/master/LICENSE) 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Mario Gutierrez 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/Editor/NoteEditor.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | [CustomEditor(typeof(NoteBehaviour))] 7 | public class NotesEditor : Editor 8 | { 9 | private SerializedProperty type; 10 | private SerializedProperty note; 11 | 12 | private void OnEnable() 13 | { 14 | type = serializedObject.FindProperty("type"); 15 | note = serializedObject.FindProperty("note"); 16 | } 17 | 18 | public override void OnInspectorGUI() 19 | { 20 | serializedObject.Update(); 21 | 22 | EditorGUILayout.PropertyField(type); 23 | 24 | SetGUIColorForType((NoteType)type.enumValueIndex); 25 | 26 | EditorGUILayout.PropertyField(note); 27 | 28 | if (GUI.changed) 29 | { 30 | serializedObject.ApplyModifiedProperties(); 31 | } 32 | } 33 | 34 | void SetGUIColorForType(NoteType type) 35 | { 36 | switch (type) 37 | { 38 | case NoteType.Memo: 39 | { 40 | GUI.backgroundColor = Color.black; 41 | break; 42 | } 43 | case NoteType.ToDo: 44 | { 45 | GUI.backgroundColor = Color.blue; 46 | break; 47 | } 48 | case NoteType.Bug: 49 | { 50 | GUI.backgroundColor = Color.red; 51 | break; 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Assets/0x4d4147/Notes/Scripts/Editor/NotesEditorWindow.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections.Generic; 4 | using System; 5 | 6 | public class NotesEditorWindow : EditorWindow 7 | { 8 | Dictionary> notes; 9 | NoteType[] noteTypes; 10 | 11 | Vector2 scrollPosition; 12 | 13 | GUIStyle memoNoteStyle; 14 | GUIStyle todoNoteStyle; 15 | GUIStyle bugNoteStyle; 16 | 17 | bool isMemoNoteBoxOpen = true; 18 | bool isTodoNoteBoxOpen = true; 19 | bool isBugNoteBoxOpen = true; 20 | 21 | [MenuItem("Window/Gather Notes")] 22 | static void Init() 23 | { 24 | // Get existing open window or if none, make a new one: 25 | NotesEditorWindow window = (NotesEditorWindow)EditorWindow.GetWindow("Gather Notes"); 26 | window.Show(); 27 | } 28 | 29 | void OnEnable() 30 | { 31 | memoNoteStyle = ConstructNoteStyle(Color.white); 32 | todoNoteStyle = ConstructNoteStyle(Color.white); 33 | bugNoteStyle = ConstructNoteStyle(Color.white); 34 | 35 | ConstructNoteDictionary(); 36 | } 37 | 38 | GUIStyle ConstructNoteStyle(Color textColor) 39 | { 40 | GUIStyle style; 41 | style = new GUIStyle(); 42 | style.wordWrap = true; 43 | style.padding = new RectOffset(10, 10, 5, 5); 44 | style.richText = true; 45 | style.normal.textColor = textColor; 46 | return style; 47 | } 48 | 49 | GUIStyle ConstructFoldoutStyle(Color textColor) 50 | { 51 | GUIStyle style; 52 | style = new GUIStyle(EditorStyles.foldout); 53 | style.normal.textColor = textColor; 54 | return style; 55 | } 56 | 57 | void ConstructNoteDictionary() 58 | { 59 | notes = new Dictionary>(); 60 | noteTypes = (NoteType[])Enum.GetValues(typeof(NoteType)); 61 | for (int i = 0; i < noteTypes.Length; ++i) 62 | { 63 | notes.Add(noteTypes[i], new List()); 64 | } 65 | } 66 | 67 | void OnGUI() 68 | { 69 | GUILayout.Space(18); 70 | 71 | if (GUILayout.Button("Refresh Notes")) 72 | { 73 | GatherNotes(); 74 | } 75 | 76 | GUILayout.Space(10); 77 | 78 | scrollPosition = EditorGUILayout.BeginScrollView(scrollPosition); 79 | 80 | for (int i = 0; i < noteTypes.Length; ++i) 81 | { 82 | GUILayout.Space(10); 83 | DrawNoteBox(noteTypes[i]); 84 | } 85 | 86 | EditorGUILayout.EndScrollView(); 87 | } 88 | 89 | void DrawNoteBox(NoteType noteType) 90 | { 91 | switch (noteType) 92 | { 93 | case NoteType.Memo: 94 | { 95 | DrawNoteBox_Generic(noteType, ref isMemoNoteBoxOpen, "Memos", memoNoteStyle, Color.black); 96 | break; 97 | } 98 | case NoteType.ToDo: 99 | { 100 | DrawNoteBox_Generic(noteType, ref isTodoNoteBoxOpen, "To Dos", todoNoteStyle, Color.blue); 101 | break; 102 | } 103 | case NoteType.Bug: 104 | { 105 | DrawNoteBox_Generic(noteType, ref isBugNoteBoxOpen, "Bugs", bugNoteStyle, Color.red); 106 | break; 107 | } 108 | } 109 | } 110 | 111 | void DrawNoteBox_Generic(NoteType noteType, ref bool isFoldoutOpen, string foldoutLabel, GUIStyle noteStyle, Color backgroundColor) 112 | { 113 | var notes = this.notes[noteType]; 114 | 115 | if (notes.Count == 0) return; 116 | 117 | if (isFoldoutOpen = EditorGUILayout.Foldout(isFoldoutOpen, foldoutLabel)) 118 | { 119 | GUI.backgroundColor = backgroundColor; 120 | for (int i = 0; i < notes.Count; ++i) 121 | { 122 | EditorGUILayout.BeginHorizontal(EditorStyles.helpBox); 123 | if (GUILayout.Button(notes[i].note, noteStyle)) 124 | { 125 | Selection.activeObject = notes[i].gameObject; 126 | EditorGUIUtility.PingObject(notes[i].gameObject); 127 | } 128 | EditorGUILayout.EndHorizontal(); 129 | } 130 | GUI.backgroundColor = Color.white; 131 | } 132 | } 133 | 134 | void ClearNotes() 135 | { 136 | foreach (var noteList in notes.Values) 137 | { 138 | noteList.Clear(); 139 | } 140 | } 141 | 142 | void GatherNotes() 143 | { 144 | ClearNotes(); 145 | 146 | GameObject[] gobs = FindObjectsOfType(); 147 | foreach (var gob in gobs) 148 | { 149 | NoteBehaviour[] nbs = gob.GetComponents(); 150 | if (nbs != null) 151 | { 152 | foreach (var nb in nbs) 153 | { 154 | notes[nb.type].Add(nb); 155 | } 156 | } 157 | } 158 | } 159 | } 160 | --------------------------------------------------------------------------------