This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
///<summary> The ReadOnly attribute for fields, allows inheritance and have its own custom drawer </summary> | |
public class ReadOnlyAttribute : PropertyAttribute | |
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------- | |
// Resources for the script: | |
// https://discussions.unity.com/t/having-text-or-notes-in-the-inspector/69375/7 | |
// https://forum.unity.com/threads/helpattribute-allows-you-to-use-helpbox-in-the-unity-inspector-window.462768/ | |
// https://forum.unity.com/threads/add-info-text-notes-into-the-inspector.265330/ | |
// https://discussions.unity.com/t/give-info-in-inspector/47815 | |
// https://github.com/johnearnshaw/unity-inspector-help/blob/master/HelpAttribute.cs | |
// https://github.com/ALanMAttano/UnityInspectorInfoTextNote/blob/master/Assets/_Scripts/Tools/Editor/InspectorNote.cs | |
// https://docs.unity3d.com/ScriptReference/EditorGUILayout.HelpBox.html | |
// ------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First gist |