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

VRC0003: Udon does not support instantiating non-GameObject types

PropertyValue
IDVRC0003
CategoryUsage
SeverityError
Runtime Version3.1.0 ~ latest

Udon does not support instantiating non-GameObject types

Example

Code with Diagnostic

using UdonSharp;
 
using UnityEngine;
 
class TestBehaviour0 : UdonSharpBehaviour
{
    public void TestMethod()
    {
        Instantiate(new TrailRenderer());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    }
}

Code with Fix

// NOT YET PROVIDED
VRC0003: Udon does not support instantiating non-GameObject types / Udon Analyzer / Natsuneko Laboratory Docs