Exemple #1
0
        public static JSClassID JS_NewClass(JSRuntime rt, JSClassFinalizer class_finalizer)
        {
#if JSB_UNITYLESS
            GCHandle.Alloc(class_finalizer);
#endif
            var fn_ptr = Marshal.GetFunctionPointerForDelegate(class_finalizer);
            return(JSApi.__JSB_NewClass(rt, JSApi.JSB_GetBridgeClassID(), "CSharpClass", fn_ptr));
        }