Skip to content

About

No description or website provided.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

OdinHelpBox

Set of scripts that change how tooltips are drawn when using Odin Inspector and add new attribute for drawing compact help boxes.

When folded, the tooltip is displayed by hovering over a toggle button.

If you don't want to change how tooltips are drawn, remove TooltipDetailsAttribute.cs and HelpBoxTooltipDrawer.cs.

If you don't want HelpBox attribute, remove HelpBoxAttribute.cs and HelpBoxAttributeDrawer.cs.

Supports Rich Text

Supports clickable links in Unity 2021+, for example <a href=\"https://www.google.com/\">Google</a>

To add details to tooltip, add TooltipDetails attribute.

Example

Example usage

Example

[Tooltip("Tooltip example")]
[TooltipDetails("@" + nameof(m_text))]
[SerializeField] private float m_test;

[PropertyTooltip("@" + nameof(m_text))]
[ShowInInspector]
private bool TestValue { get; set; }

[HelpBox("@" + nameof(m_text), "Help box details example")]
[SerializeField] private Vector2 m_vector;

[SerializeField] private string m_text = "Example text";

About

No description or website provided.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Contributors

Languages