Navigation

VSC0021: Types must be match between property and VariableChangeField

Property Value
ID VSC0021
Category Compiler
Severity Error
Runtime Version 3.1.0 ~ latest
Compiler Version 1.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