1
TNet 3 Support / Re: Manually Instantiating
« on: June 14, 2013, 01:36:29 AM »
Hey Aren!
Thanks for the reply, I got this working last night after having another look.
It's strange, there's the mDelayedCall list (In TNObject) to store a list of "calls that could not execute at the time of the call" as the comments say.
This list does get delayed calls added to it, but as far as I can tell, there's no code to execute these at any point. :/
So the delayed calls just sit in that list and no error/warning in Unity (which makes sense as it's not actually a problem... those calls should be executed in the future, when the correct TNO is available, it's just that this doesn't seem to happen)
So, my solution was to check the mDelayedCalls list, for any calls intended for this instance of TNObject (matching uid) at the end of the Register() Method.
If any calls are found, they are then executed using the appropriate FindAndExcecute() method, and then removed from mDelayedCalls
And that works just fine!
Anyways, hope this helps someone!
Cheers.
Owen
Thanks for the reply, I got this working last night after having another look.
It's strange, there's the mDelayedCall list (In TNObject) to store a list of "calls that could not execute at the time of the call" as the comments say.
This list does get delayed calls added to it, but as far as I can tell, there's no code to execute these at any point. :/
So the delayed calls just sit in that list and no error/warning in Unity (which makes sense as it's not actually a problem... those calls should be executed in the future, when the correct TNO is available, it's just that this doesn't seem to happen)
So, my solution was to check the mDelayedCalls list, for any calls intended for this instance of TNObject (matching uid) at the end of the Register() Method.
If any calls are found, they are then executed using the appropriate FindAndExcecute() method, and then removed from mDelayedCalls
And that works just fine!
Anyways, hope this helps someone!
Cheers.
Owen

)
but it might be worth posting an example for anyone else who has the same problem.