Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

[RESOURCE] Free Editor Notes Addon

Discussion in 'Scripting' started by collinpatrick15, Dec 25, 2018.

  1. collinpatrick15

    collinpatrick15

    Joined:
    Nov 7, 2018
    Posts:
    35
    This is my first time sharing an editor extension I made so I hope this is the right place. I will also post in the Extensions forum if possible.

    NotesAddonPreview.PNG

    I pretty much wrote all the information in the screenshot. If you use this addon be sure to place the "Notes" folder in the root assets folder as I was too lazy to tell it to search all project folders. The Window for this addon can be found under Window>Notes.

    If I get enough demand, I will create an extension to this addon for Game Object Notes (Notes you can write on individual game objects) and make them viewable within this window as well as on the Game Object itself.
     

    Attached Files:

    SparrowGS and Lurking-Ninja like this.
  2. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,920
    Good job, keep up the good work!
     
  3. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Damn, thanks for the share.

    I was a bit annoyed that I had to keep text files separate, this is a good solution.
     
  4. blu3drag0n

    blu3drag0n

    Joined:
    Nov 9, 2018
    Posts:
    94
    Hi there,

    first of all: thanks collinpatrick to provide us such a nice thing, I was wondering if Unity provides such Addin built-in, but I cant find anything.
    And your extension perfectly adds what I was looking for to start organizing myself for alle the project scopes I would forget otherwise.

    [[ IMPORTANT BUGFIX - PLEASE READ (to everyone looking for such a cool tool) ]]

    Unfortunately the original script is bugged at one major part: saving the changes you have made to a note sometimes does not work and just drops all of your changes.
    This is due to that your noteContent is not updating the notebook.notes List properly at proper times.

    I figured out how to fix this bug and attached the script "NotesWindows.cs" to all of you again.
    @OP: I just got rid of all the "OnFocus" "OnLostFocus" "OnDestroy" stuff events, which makes the handling less laggy and save the current textarea content in the notebook.notes as soon as you click another Notes button in the list.

    I also added a "Save" Button to make it feel more kinda "safer" ;-)

    Dunno how this licensing stuff works in such cases, but lemme say for sure that its still owned by collinpatrick and for free!


    Still: thanks for all the good work, I am not too experienced in making own Custom Editor Extensions and found it cool to have yours ! :)

    KR,
    Michael
     

    Attached Files:

  5. collinpatrick15

    collinpatrick15

    Joined:
    Nov 7, 2018
    Posts:
    35
    Wow. I was not expecting anyone to actually use it. I have definitely grown as a programmer since I posted this which makes me scared to even look at the code. If there's any interest I could rewrite it from the ground up with more features and stability.
     
  6. blu3drag0n

    blu3drag0n

    Joined:
    Nov 9, 2018
    Posts:
    94
    To be honest I am super interested, but the tool is currently doing what it should.
    The only thing I miss is some sort of "up" and "down" arrow for the single notes in the list, to make organizing easier.
    As well as having the search not case-semsitve.
    But these are all really minor things to even mention.
    It does what it does: making notes in Unity Editor directly possible.
    But if you think about your reputation (if interested anyhow) you might create a powerfull notes tool which then could become standard built-in in one of Unities next release some day.
    Because IMHO for such a mighty editor - what Unity definitly is - something like a Notes-Feature should/could be one of the basics.
     
  7. blu3drag0n

    blu3drag0n

    Joined:
    Nov 9, 2018
    Posts:
    94
    PS.: if you are interested in such long-term, I would be happy to review / test your tool and may suggest some ideas if thats what you are looking for.
    But dont feel you need to commit, I'm just propounding :)
     
  8. collinpatrick15

    collinpatrick15

    Joined:
    Nov 7, 2018
    Posts:
    35
    Yeah. I was thinking of adding the ability to put notes on game objects as well and save the notes using JSON or XML if I ever redo it.
     
  9. unity_Ti5k0wqn5cf7xA

    unity_Ti5k0wqn5cf7xA

    Joined:
    Feb 1, 2021
    Posts:
    1
    Hey collinpatrick,
    Thanks for this amazing asset. I was thinking of creating the same kind of thing and stumbled here searching for some inspiration. I will try to learn from this , create my own enhanced version, and will put the link here for your suggestions and guidance, Thanks.
     
  10. collinpatrick15

    collinpatrick15

    Joined:
    Nov 7, 2018
    Posts:
    35
    Cool! I don't suggest using my code as a reference when making your own. 4 years later and I am cringing at that poorly written code. Feel free to ask for feedback or pointers. I may look into writing a new more robust version myself using Unity's new UI system in a few months now that my life is less hectic. I have a project that is in dire need of a notes tool, so hopefully, I don't come back again two years later to say the same thing.