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.

GD0101: 내보낸 멤버는 정적입니다.

규칙 ID

GD0101

카테고리

사용례

수정 내용이 중단되거나 중단되지 않음

속보 - static 키워드가 제거된 경우

비계속 - [Export] 속성이 제거된 경우

기본적으로 활성화됨

es

원인

정적 멤버에는 [Export] 속성으로 주석이 추가됩니다. 정적 멤버는 내보낼 수 없습니다.

설명

Godot는 정적 멤버 내보내기를 허용하지 않습니다.

// Static members can't be exported.
[Export]
public static int InvalidProperty { get; set; }

// Instance members can be exported.
[Export]
public int ValidProperty { get; set; }

독립적으로 존재해야 하는 것

이 규칙 위반을 수정하려면 [Export] 속성을 제거하거나 static 키워드를 제거하십시오.

경고를 억제해야 하는 경우

이 규칙에서 경고를 표시하지 마세요. 정적 멤버는 내보낼 수 없으므로 Godot에서 무시되어 런타임 오류가 발생합니다.