i see it hard to find any adequately answer on that.
i have a TcpClient that accept data in separate thread and should update gameobject state basing on received data.
first of all i can’t call GameObject.Find(“bla”) from another thread. Well i though it’s not a big problems and tried to use MethodInfo variable pointed on needed function, to execute it like this when received:
method_info.Invoke(this, new object { data }); //for weird reason it executes in current thread (not main)
ok… let’s see then at this.Invoke(“NeededFunction”, 0); //what O_o? i can call it only in main thread? nice invoke
ok… let’s see on delegates… err this does not contain InvokeRequred field and this is already a big problem
omg just how to access gameobjects from another threads?