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

VRC0009: Type is not exposed to Udon

PropertyValue
IDVRC0009
CategoryUsage
SeverityError
Runtime Version3.1.0 ~ latest

Type is not exposed to Udon.

Example

Code with Diagnostic

using System;
 
using UdonSharp;
 
class TestBehaviour0 : UdonSharpBehaviour
{
    private IntPtr _ptr;
            ~~~~~~
 
    public IntPtr Ptr { get; set; }
           ~~~~~~
 
    public IntPtr SomeMethod(IntPtr ptr)
           ~~~~~~            ~~~~~~
    {
        IntPtr a = IntPtr.Zero;
        ~~~~~~
        return a;
    }
}

Code with Fix

// NOT YET PROVIDED
VRC0009: Type is not exposed to Udon / Udon Analyzer / Natsuneko Laboratory Docs