This topic is not available in your language. Therefore, the original version (ja-jp) is displayed.

VSC0021: Types must be match between property and VariableChangeField

PropertyValue
IDVSC0021
CategoryCompiler
SeverityError
Runtime Version3.1.0 ~ latest
Compiler Version1.0.0 ~ latest

Types must be match between property and VariableChangeField.

Example

Code with Diagnostic

using UdonSharp;
 
public class TestBehaviour : UdonSharpBehaviour
{
    [FieldChangeCallback("SomeProperty")]
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private string _str1;
 
    private int SomeProperty { get; set; }
}

Code with Fix

// NOT YET PROVIDED
VSC0021: Types must be match between property and VariableChangeField / Udon Analyzer / Natsuneko Laboratory Docs