Ejemplo n.º 1
0
    private void OnDisable()
    {
        //Use mono hook to detach rendering thread from mono.
        CommandBuffer cb = new CommandBuffer();

        cb.IssuePluginEvent(MonoHookNativeInterop.GetRenderEventFunc(RenderEventFuncID.RenderThreadDetachEvent), 0);
        Graphics.ExecuteCommandBuffer(cb);

        MonoHookNativePlugin.Shutdown();
    }
Ejemplo n.º 2
0
 protected IntPtr RegisterRenderCallback(RenderEventDelegate callback)
 {
     RenderEventFuncPtr = Marshal.GetFunctionPointerForDelegate(callback);
     MonoHookNativeInterop.SetRenderEventCallback(RenderEventFuncPtr);
     return(MonoHookNativeInterop.GetRenderEventFunc(RenderEventFuncID.ManagedCodeRenderEvent));
 }
Ejemplo n.º 3
0
 public static void Shutdown()
 {
     MonoHookNativeInterop.Shutdown();
 }
Ejemplo n.º 4
0
 public static void Init()
 {
     MonoHookNativeInterop.LinkDebug(functionPointer);
 }