Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

GD0109: '[ExportToolButton]' 特性不能与其他 '[Export]' 特性同时使用

规则 ID

GD0109

类别

用法

修复是破坏性的还是非破坏性的

非破坏性的

默认启用

原因

一个属性同时被标注了 [ExportToolButton][Export] 特性。

规则说明

[ExportToolButton] 特性已隐含导出成员功能,因此无需额外添加 [Export] 特性。

如何解决违规情况

要修复违反该规则的情况,请移除 [Export] 属性。

何时抑制警告

不要抑制该规则的警告。多个导出特性可能导致成员重复,从而引发意外的运行时错误。