Navigation
This page has not been translated yet. Showing the default language version.

VSC0004: Cannot use typeof on user-defined types

Property Value
ID VSC0004
Category Compiler
Severity Error
Runtime Version 3.1.0 ~ latest
Compiler Version 1.0.0 ~ latest

Cannot use typeof on user-defined types

Example

Code with Diagnostic

using UdonSharp;

class TestBehaviour0 : UdonSharpBehaviour
{
    public void TestMethod()
    {
        var t = typeof(TestBehaviour0);
                ~~~~~~~~~~~~~~~~~~~~~~
    }
}

Code with Fix

// NOT YET PROVIDED