URA0008: User property declarations are not yet supported by UdonSharp¶
ID: URA0008 /
Category: UdonSharp /
Severity: Error
UdonSharp では現時点でユーザー定義の自動実装プロパティはサポートされていません。
代わりに Getter / Setter パターンの使用や Public フィールドの使用を検討してください。
Example¶
using UdonSharp;
class ExampleClass : UdonSharpBehaviour
{
public string NameTag { get; set; } // URA0008
}
Solution¶
using UdonSharp;
class ExampleClass : UdonSharpBehaviour
{
private string _nameTag;
public string GetNameTag()
{
return _nameTag;
}
public void SetNameTag(string tag)
{
_nameTag = tag;
}
}
Last update: May 9, 2021 14:20:17