Author Topic: Prefabs get lost  (Read 2109 times)

iandi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Prefabs get lost
« 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

voncarp

  • Jr. Member
  • **
  • Thank You
  • -Given: 13
  • -Receive: 2
  • Posts: 91
    • View Profile
Re: Prefabs get lost
« Reply #1 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Prefabs get lost
« Reply #2 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.