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.
Checking the stable version of the documentation...
GD0102: 내보낸 멤버 유형이 지원되지 않습니다.
규칙 ID |
GD0102 |
카테고리 |
사용례 |
수정 내용이 중단되거나 중단되지 않음 |
속보 - 회원 유형이 변경된 경우 비계속 - |
기본적으로 활성화됨 |
es |
원인
Variant 호환 유형 <c_sharp_variant_ Compatible_types>`이 예상되는 경우 ``[Export]` 특성으로 주석이 달린 멤버에 대해 지원되지 않는 유형이 지정되었습니다.
설명
내보낸 모든 멤버는 엔진에서 마샬링할 수 있도록 Variant와 호환되어야 합니다.
class SomeType { }
// SomeType is not a valid member type because it doesn't derive from GodotObject,
// so it's not compatible with Variant.
[Export]
public SomeType InvalidProperty { get; set; }
// System.Int32 is a valid type because it's compatible with Variant.
[Export]
public int ValidProperty { get; set; }
독립적으로 존재해야 하는 것
이 규칙 위반 문제를 해결하려면 멤버 유형을 Variant 호환 가능으로 변경하거나 [Export] 속성을 제거하세요.
경고를 억제해야 하는 경우
이 규칙에서 경고를 표시하지 마세요. 마샬링할 수 없는 유형의 멤버는 런타임 오류를 발생시킵니다.