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

VSC0014: Does not support null conditional operators

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

Does not support null conditional operators

Example

Code with Diagnostic

using UdonSharp;
 
class TestBehaviour0 : UdonSharpBehaviour
{
    public void TestMethod()
    {
        string a = null;
        string b = a?.ToLowerInvariant();
                   ~~~~~~~~~~~~~~~~~~~~~
    }
}

Code with Fix

// NOT YET PROVIDED
VSC0014: Does not support null conditional operators / Udon Analyzer / Natsuneko Laboratory Docs