Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by loopj · Jan 02, 2013 at 10:36 PM · inspectorcomponent

How can I link to my docs in a Custom Inspector panel?

We've created a Custom Inspector panel for a Unity component we are releasing, and I'd love to be able to link directly to our documentation when a user clicks on the documentation icon in the inspector panel:

alt text

Right now, when I click that icon, I'm taken to the generic MonoBehavior docs.

Does anyone know how I can change where this icon links to?

Thanks!

custom-inspector-docs.png (28.8 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image yoyo · Jan 02, 2013 at 10:56 PM 0
Share

BTW, this is a dupe of http://answers.unity3d.com/questions/170702/custom-help-for-editor-scripts.html.

avatar image NeatWolf · Sep 03, 2020 at 08:56 AM 0
Share

Just a poke: Could you please mark Thrawn75's answer as the correct answer? (if you also believe so, 7 years later?) ;)

3 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by Kronnect · Aug 31, 2016 at 03:21 PM

Use [HelpUrl] annotation on your script class.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image PhannGor · Nov 17, 2016 at 07:23 PM 1
Share

This should be marked as correct answer.

avatar image NeatWolf PhannGor · Sep 03, 2020 at 08:57 AM 0
Share

Indeed it's the correct answer. Voting and commenting to increase its relevance.

avatar image
5

Answer by yoyo · Jan 02, 2013 at 10:53 PM

Unity's Editor classes uses the Help class to launch the documentation. Basically if there is help available for the "target" of your editor, then it will be shown. Unfortunately the documentation for HasHelpForObject and ShowHelpForObject doesn't suggest that it's possible to add your own objects or object types.

You could add your own help button that uses Help.BrowseURL to launch the documentation.

And you could probably use GUI.Button with a rectangle that puts your button on top of the standard one. Here is the code used for the standard button:

 GUI.Button(new Rect(r.width - 36f, r.y + 5f, 14f, 14f), EditorGUI.s_HelpIcon, EditorStyles.inspectorTitlebarText)

Where r is the rectangle defining the editor header region and the help icon is initialized with:

 EditorGUI.s_HelpIcon = EditorGUIUtility.IconContent("_Help");

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by makaka-org · Feb 04, 2018 at 04:07 PM

☄ [HelpUrl] & Flexible Image Header in Publisher Component

Publisher Component is a decoration for your script inspector.
Now your product will always look cool.

Download: https://makaka.org/o/publisher-window
Documentation: https://makaka.org/unity-assets/asset-store-tools

Video: https://www.youtube.com/watch?v=jFOt0B2AinY

alt text

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Components added programatically - visibility in inspector 1 Answer

How can I hide a MonoBehaviour from the Inspector? (or make it extremely thin or compact) 1 Answer

ECS, IComponentData wont show in inspector 1 Answer

Simple text in inspector components? 2 Answers

TextMeshPro Not updating Text with Rich Tags Immediately 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges