Browse Source

Fixed reference doc generator to work with protected properties

master
Christopher 9 years ago
parent
commit
b6fe362904
  1. 3
      Assets/Fungus/Flowchart/Editor/BlockEditor.cs

3
Assets/Fungus/Flowchart/Editor/BlockEditor.cs

@ -229,7 +229,6 @@ namespace Fungus
e.Use(); e.Use();
} }
} }
} }
// Remove any null entries in the command list. // Remove any null entries in the command list.
@ -600,7 +599,7 @@ namespace Fungus
protected static string GetPropertyInfo(System.Type type) protected static string GetPropertyInfo(System.Type type)
{ {
string markdown = ""; string markdown = "";
foreach(FieldInfo field in type.GetFields() ) foreach(FieldInfo field in type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic))
{ {
TooltipAttribute attribute = (TooltipAttribute)Attribute.GetCustomAttribute(field, typeof(TooltipAttribute)); TooltipAttribute attribute = (TooltipAttribute)Attribute.GetCustomAttribute(field, typeof(TooltipAttribute));
if (attribute == null ) if (attribute == null )

Loading…
Cancel
Save