This topic is not available in your language. Therefore, the original version (ja-jp) is displayed.
VSC0017: Does not support goto case statement
| Property | Value | 
|---|---|
| ID | VSC0017 | 
| Category | Compiler | 
| Severity | Error | 
| Runtime Version | 3.1.0 ~ latest | 
| Compiler Version | 1.0.0 ~ latest | 
Does not support goto case statement
Example
Code with Diagnostic
using UdonSharp;
 
using UnityEngine;
 
class TestBehaviour0 : UdonSharpBehaviour
{
    public void TestMethod(int i)
    {
        switch (i)
        {
            case 0:
                Debug.Log("zero");
                goto case 1;
                ~~~~~~~~~~~~
 
            case 1:
                break;
        }
    }
}Code with Fix
// NOT YET PROVIDED