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. Dismiss Notice

How to make a cool readme like this?

Discussion in 'Editor & General Support' started by krutolo, Feb 17, 2018.

  1. krutolo

    krutolo

    Joined:
    Mar 21, 2014
    Posts:
    3
    So, today i downloaded the 2d game kit to check it out and saw that it had a nice looking Readme file inspector (below) and would like to make something like that for an asset im making. Is that just a custom inspector? Any ideas on how to create something similar? Thanks!
     
    firejerm likes this.
  2. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
    I think it's a .asset file. Open that up with MonoDevelop or a code editor of your choice and you should see the code of it?!
     
    krutolo likes this.
  3. krutolo

    krutolo

    Joined:
    Mar 21, 2014
    Posts:
    3
    i got this, i guess i can reverse it, im mostly stuck on the picture but nothing unsolvable after a couple minutes. thanks!

    %YAML 1.1
    %TAG !u! tag:unity3d.com,2011:
    --- !u!114 &11400000
    MonoBehaviour:
    m_ObjectHideFlags: 0
    m_PrefabParentObject: {fileID: 0}
    m_PrefabInternal: {fileID: 0}
    m_GameObject: {fileID: 0}
    m_Enabled: 1
    m_EditorHideFlags: 0
    m_Script: {fileID: 11500000, guid: fcf7219bab7fe46a1ad266029b2fee19, type: 3}
    m_Name: Readme
    m_EditorClassIdentifier:
    icon: {fileID: 2800000, guid: 6756ed7b80223ac4e8f026ce27541de4, type: 3}
    title: 'Explorer: 2D Game Kit'
    sections:
    - heading: What is a Gamekit?
    text: This game kit empowers you to create your own 2D platformer game without
    writing any code.
    linkText:
    url:
    - heading: How do I use it?
    text: We've written a detailed manual that explores all the available prefabs
    and components that make up the mechanics in this kit. You can find the manual
    on our Learn site.
    linkText: Read the manual
    url: https://unity3d.com/learn/tutorials/s/2d-game-kit
    - heading: Got feedback?
    text: 'Let us know what you think or ask sdcdsdsdfsdfdf questions you might have on our FORUM. '
    linkText: Forum Thread
    url: https://forum.unity.com/threads/2d-game-kit-official-thread.517249/
    loadedLayout: 1
     
  4. FuguFirecracker

    FuguFirecracker

    Joined:
    Sep 20, 2011
    Posts:
    419
    xVergilx and krutolo like this.
  5. JohnAlbin

    JohnAlbin

    Joined:
    Jan 15, 2017
    Posts:
    1
    I was wondering the same thing when I found this post! Unfortunately, more googling found no additional information about how to do this, so I had to figure the rest of it out on my own.

    Anyway, the trick is to click the dropdown to the right of the Readme’s Inspector tab and pick the “Debug” option. Then you can change the icon, the text, everything…

    I even made a GitHub project with the code from Unity's tutorials, so you can download a pre-made package and add Readme tabs to any project. The full tutorial on how to edit Readme inspector tabs is in the Readme that is added when you import the package. https://github.com/JohnAlbin/UnityReadme
     
  6. Justin-Wasilenko

    Justin-Wasilenko

    Joined:
    Mar 10, 2015
    Posts:
    103
    @JohnAlbin Thanks for doing that, that's great!
     
  7. BrinicleGames

    BrinicleGames

    Joined:
    Jan 7, 2019
    Posts:
    2
    To create the ReadmeEditor I just have to create a normal C# script and edit it.
    Same for Readme ScriptableObject.
    How do you create the readme asset file containing the YAML content from inside the editor ?
    Do I have to create it from outside the unity editor ?
     
  8. Masthead

    Masthead

    Joined:
    Apr 17, 2015
    Posts:
    2
    @JohnAlbin how do we create the final readme file ?
    Do we just make a file outside of unity ?
     
  9. Noisecrime

    Noisecrime

    Joined:
    Apr 7, 2010
    Posts:
    2,000
    Just add the CreateAssetMenu attribute to the Readme.cs

    e.g
    Code (CSharp):
    1. [CreateAssetMenu( fileName = "Readme", menuName = "ScriptableObjects/Readme", order = 5 )]
    2. public class Readme : ScriptableObject
     
    DSivtsov likes this.
  10. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    It would be cool to use this for a game developer to do list could it be made interactive?
     
  11. majorgrubert

    majorgrubert

    Joined:
    Jan 13, 2013
    Posts:
    6
    Thanks for the tip, @JohnAlbin!
     
  12. yonatanab1

    yonatanab1

    Joined:
    Sep 9, 2018
    Posts:
    50
    You Are Awesome! this works, thank you!