Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: iandi on March 26, 2015, 05:54:42 AM

Title: Prefabs get lost
Post by: iandi on March 26, 2015, 05:54:42 AM
Hi Community,

Im having the following issue. I have objects getting instantiated at run-time. The scene works fine in Unity only and with Unity networking.

With TNet as soon as I joining a channel the objects get lost. I have added them to the objects array of TNManager. However, even there they are disapearing.

I have added TNManager to the main cam.

I cannot instantiate them with TNManager.Create as there is no overload for creating and positioning them and also I would prefer to keep my code as it was.

Many thanks for any help.

Andi
Title: Re: Prefabs get lost
Post by: voncarp on March 27, 2015, 05:03:24 PM
Why can't you position them with TNManager.Create?

Have you tried :

http://www.tasharen.com/forum/index.php?topic=5416.msg25753#msg25753
Title: Re: Prefabs get lost
Post by: ArenMook on March 27, 2015, 11:27:45 PM
Exactly what voncarp said. You can pass any number of arguments to your creation functions, you just need to create those custom creation functions first (they're called RCCs).

Objects will disappear if you switch channels.