Open FattyQi opened 1 year ago
as in the README if you want to play with unity game objects (eg: rotating an object) or saving data using PlayerPrefs system use this instead:
socket.OnUnityThread("spin", (response) =>
{
objectToSpin.transform.Rotate(0, 45, 0);
});
replace spin
with your event generationResult
I am trying to update the texutre on Editor UI after receiving the path from server side. The C# code is shown as below. After triggering the event, I can successfully get the
lastImagePath
, but cannot execute the code insideUnityThread.executeInUpdate
. Do you know how to fix this?