diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs index fe4575f20..920e74f67 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs @@ -1239,7 +1239,7 @@ namespace Flax.Build.Bindings throw new Exception($"Class {classInfo.Name} cannot implement interface {interfaceInfo.Name} because it requires ScriptingObject as a base class."); contents.AppendLine(); - if (functionInfo.Comment.Length != 0) + if (functionInfo.Comment != null && functionInfo.Comment.Length != 0) contents.Append(indent).AppendLine("/// "); GenerateCSharpAttributes(buildData, contents, indent, classInfo, functionInfo.Attributes, null, false, useUnmanaged); contents.Append(indent).Append(GenerateCSharpAccessLevel(functionInfo.Access));