diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs index 25d30a37a..93b81f655 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs @@ -1120,7 +1120,7 @@ namespace Flax.Build.Bindings { contents.Append(indent); if (propertyInfo.Access != propertyInfo.Getter.Access) - contents.Append(GenerateCSharpAccessLevel(propertyInfo.Access)); + contents.Append(GenerateCSharpAccessLevel(propertyInfo.Getter.Access)); contents.Append("get { "); GenerateCSharpWrapperFunctionCall(buildData, contents, classInfo, propertyInfo.Getter); contents.Append(" }").AppendLine(); @@ -1130,7 +1130,7 @@ namespace Flax.Build.Bindings { contents.Append(indent); if (propertyInfo.Access != propertyInfo.Setter.Access) - contents.Append(GenerateCSharpAccessLevel(propertyInfo.Access)); + contents.Append(GenerateCSharpAccessLevel(propertyInfo.Setter.Access)); contents.Append("set { "); GenerateCSharpWrapperFunctionCall(buildData, contents, classInfo, propertyInfo.Setter, true); contents.Append(" }").AppendLine();