Search the Community
Showing results for tags 'thread'.
-
I need to receive UDP data and create nodes dynamically. public override bool Init() { UDPClient = new UDP(); UDPClient.OnReciveDate += InitModel; task = Task.Run(() => { UDPClient.Recive(); }); return true; } private void InitModel(byte[] buf) { try { var res = Util.BytesToStruct(buf); NodeReference node = new NodeReference("capsule.Node"); n.Name = res.Id; } catch (Exception ex) { Log.ErrorLine(ex.Message); Log.ErrorLine(ex.StackTrace); } }
-
Hello, I want to read data from objects of classes Like Mesh or ObjectMeshStatic in another thread. But when I do this the microprofiler is not working anymore. Is it safe to use read only methods on Unigine classes from another thread? Regards Sebastian
- 11 replies
-
- thread
- multithreading
-
(and 2 more)
Tagged with: