public void SetFPS() { if (inputField) { API_SVR.SetRenderFrame(int.Parse(inputField.text)); } }
public void ShowCamera() { // if (!SvrManager.Instance.Initialized) return; if (Application.platform == RuntimePlatform.Android) { API_SVR.GetLatestQVRCameraBinocularData(ref outBUdate, ref outCurrFrameIndex, ref outFrameExposureNano, outLeftFrameData, outRightFrameData); Debug.Log("LGS:outBUdate=>" + outBUdate + " outCurrFrameIndex:" + outCurrFrameIndex + " outFrameExposureNano" + outFrameExposureNano); if (outBUdate) { _showLeftImage.texture = GetTexture(outLeftFrameData); _showLeftImage.rectTransform.sizeDelta = new Vector2(imageWidth, imageHeight); _showRightImage.texture = GetTexture(outRightFrameData); _showRightImage.rectTransform.sizeDelta = new Vector2(imageWidth, imageHeight); } else { Debug.Log("Error: Please Check Svrconfig prop: gUseQVRCamera = true"); } } }
void Start() { inputField = GetComponentInChildren <Game3DInputField>(); API_SVR.SetRenderFrame(75); }