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 }
public bool Log(string message, VLUnitySdk.LogLevel level) { return(VLUnitySdk.Log(message, level)); }
public bool SetLogLevel(VLUnitySdk.LogLevel level) { return(VLUnitySdk.SetLogLevel(level)); }