diff --git a/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs b/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs
index 3f8d8012f..7042dfb92 100644
--- a/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs
+++ b/Source/Editor/Modules/SourceCodeEditing/CodeDocsModule.cs
@@ -27,6 +27,17 @@ namespace FlaxEditor.Modules.SourceCodeEditing
{
}
+ ///
+ /// Gets the tooltip text for the type.
+ ///
+ /// The type.
+ /// The type attributes. Optional, if null type attributes will be used.
+ /// The documentation tooltip.
+ public string GetTooltip(Type type, object[] attributes = null)
+ {
+ return GetTooltip(new ScriptType(type), attributes);
+ }
+
///
/// Gets the tooltip text for the type.
///
@@ -62,6 +73,19 @@ namespace FlaxEditor.Modules.SourceCodeEditing
return text;
}
+ ///
+ /// Gets the tooltip text for the type member.
+ ///
+ /// The type.
+ /// The member name.
+ /// The member attributes. Optional, if null member attributes will be used.
+ /// The documentation tooltip.
+ public string GetTooltip(Type type, string memberName, object[] attributes = null)
+ {
+ var member = new ScriptType(type).GetMember(memberName, MemberTypes.All, BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance);
+ return GetTooltip(member, attributes);
+ }
+
///
/// Gets the tooltip text for the type member.
///