Unity add notes to gameobjects
a tutorial on adding notes to GameObjects in the Unity inspector
great for documentation
-
Create a script called
AssetComments
.
-
Attach this script to any gameObjects to which you want to add notes
disadvantages¶
- doesn’t work on assets e.g. texture
- you need to drag the script to each gameObject, instead of instantly typing notes in the inspector.
- could make some kind of custom importer that adds the script to all gameObjects that don’t have it yet.
- let’s make that a custom inspector instead, that adds it to the gameobject as soon as the user writes a note in the inspector.
tips¶
- in Unity search you can search
t:comment
A Unity thread describing different approaches. The latest discussed approach is similar to the above.
Backlinks¶
- Unity inspector notes for folders & assets
- this can also be achieved with a gameobject in each folder, and Unity - add notes to gameobjects
- Unity notes
- link Unity asset to asset
- Unity - inspector note
- this script lives as a dependency in curvy splines (PAID)