From b6fe362904a084fcba68da50f5e97ba8eb1a235f Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 24 Aug 2016 12:27:50 +0100 Subject: [PATCH] Fixed reference doc generator to work with protected properties --- Assets/Fungus/Flowchart/Editor/BlockEditor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Fungus/Flowchart/Editor/BlockEditor.cs b/Assets/Fungus/Flowchart/Editor/BlockEditor.cs index 77a5e472..9a84341b 100644 --- a/Assets/Fungus/Flowchart/Editor/BlockEditor.cs +++ b/Assets/Fungus/Flowchart/Editor/BlockEditor.cs @@ -229,7 +229,6 @@ namespace Fungus e.Use(); } } - } // Remove any null entries in the command list. @@ -600,7 +599,7 @@ namespace Fungus protected static string GetPropertyInfo(System.Type type) { 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)); if (attribute == null )