From 852ef764606e94d45c45ed291778dcf38940a627 Mon Sep 17 00:00:00 2001 From: Konstantin Neureither Date: Fri, 4 Oct 2019 14:36:50 +0200 Subject: [PATCH] removed variable captureChangeRequest --- UCGeometrics/Assets/Scripts/UCManageCapture.cs | 1 - UCGeometrics/Assets/Scripts/UnityCommunicatorClient.cs | 5 +---- .../Contents/Resources/Data/StreamingAssets/tcpconfig.json | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/UCGeometrics/Assets/Scripts/UCManageCapture.cs b/UCGeometrics/Assets/Scripts/UCManageCapture.cs index 9e32058..a115c8b 100644 --- a/UCGeometrics/Assets/Scripts/UCManageCapture.cs +++ b/UCGeometrics/Assets/Scripts/UCManageCapture.cs @@ -46,7 +46,6 @@ private void LateUpdate() public IEnumerator CapturePNGSendAsBytes() { Debug.Log("Coroutine entered"); - UnityCommunicator.captureChangeRequest = false; //Wait until frame is rendered completely yield return new WaitForEndOfFrame(); diff --git a/UCGeometrics/Assets/Scripts/UnityCommunicatorClient.cs b/UCGeometrics/Assets/Scripts/UnityCommunicatorClient.cs index 400d15e..eed84d9 100644 --- a/UCGeometrics/Assets/Scripts/UnityCommunicatorClient.cs +++ b/UCGeometrics/Assets/Scripts/UnityCommunicatorClient.cs @@ -9,8 +9,7 @@ public class UnityCommunicatorClient { #region members - [HideInInspector] public bool[] objectParametersSet; //tells if every object is set to new json parameters - [HideInInspector] public bool captureChangeRequest; //tells if there are new paramteres to render + [HideInInspector] public bool[] objectParametersSet; //tells if every object is set to new json parameters [HideInInspector] public bool sceneShotProcessed; //tells if next parameters can be received [HideInInspector] public JSONCaptureParameters CaptureParameters; //stores all received parameters for scene (accessed by TCPGameObjectController) @@ -32,7 +31,6 @@ public UnityCommunicatorClient(int numberOfObjects) this.numberOfObjects = numberOfObjects; readyToCapture = false; endSession = false; - captureChangeRequest = false; sceneShotProcessed = true; objectParametersSet = new bool[numberOfObjects]; } @@ -87,7 +85,6 @@ public void ReceiveParameters() else { jsonparameters = serverMessage.Substring(0, serverMessage.IndexOf("eod.", StringComparison.Ordinal - 1)); - captureChangeRequest = true; sceneShotProcessed = false; //Set every object's Render Status to false diff --git a/UCGeometrics/Builds/UCGeometricsBuild.app/Contents/Resources/Data/StreamingAssets/tcpconfig.json b/UCGeometrics/Builds/UCGeometricsBuild.app/Contents/Resources/Data/StreamingAssets/tcpconfig.json index 8b53cd5..70ca38f 100644 --- a/UCGeometrics/Builds/UCGeometricsBuild.app/Contents/Resources/Data/StreamingAssets/tcpconfig.json +++ b/UCGeometrics/Builds/UCGeometricsBuild.app/Contents/Resources/Data/StreamingAssets/tcpconfig.json @@ -1 +1 @@ -{"host": "localhost", "ports": [50000, 50098]} \ No newline at end of file +{"host": "localhost", "ports": [50000, 50100]} \ No newline at end of file