/// <summary> /// Set thresholdMode parameter at runtime. [public use] /// </summary> /// <param name="o">New parameter</param> public void SetVideoThresholdMode(ThresholdMode o) { if (HasNativeHandle()) { ARUWP.aruwpSetVideoThresholdMode((int)o); thresholdMode = (ThresholdMode)ARUWP.aruwpGetVideoThresholdMode(); if (thresholdMode != o) { Debug.Log(TAG + ": Unable to set video threshold mode to " + o); } } else { Debug.Log(TAG + ": SetVideoThresholdMode() unsupported status"); } }
public void setVideoThresholdMode(ThresholdMode o) { if (state == State.DETECTION_RUNNING) { ARUWP.aruwpSetVideoThresholdMode((int)o); thresholdMode = (ThresholdMode)ARUWP.aruwpGetVideoThresholdMode(); if (thresholdMode != o) { Debug.Log(TAG + ": Unable to set video threshold mode to " + o); } } else { thresholdMode = o; } }