Exemplo n.º 1
0
    private void Update()
    {
        // if (!this.aap.ActivateFoundBlockedFeatures())
        // {
        //     Debug.LogError("[vlUnitySDK] Could not activate 'found blocked features'");
        // }

        // Log level changed?
        if (this.lastLogLevel != this.logLevel)
        {
            this.logger.SetLogLevel(this.logLevel);
            this.lastLogLevel = this.logLevel;
        }

        // Target FPS changed?
        if (this.lastTargetFPS != this.targetFPS)
        {
            this.lastTargetFPS = this.targetFPS;
            this.worker.PushCommand(
                new SetTargetFpsCmd(this.targetFPS),
                null,
                IntPtr.Zero);
        }

        this.worker.ProcessCallbacks();
        if (this.waitForEvents)
        {
            this.worker.WaitEvents(1000);
        }
        else
        {
            this.worker.PollEvents();
        }

#if UNITY_2017_1_OR_NEWER
        this.logger.FlushLogBuffer();
#endif
    }
Exemplo n.º 2
0
 public bool Log(string message, VLUnitySdk.LogLevel level)
 {
     return(VLUnitySdk.Log(message, level));
 }
Exemplo n.º 3
0
 public bool SetLogLevel(VLUnitySdk.LogLevel level)
 {
     return(VLUnitySdk.SetLogLevel(level));
 }