Author Topic: TransferToChannel  (Read 1510 times)

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
TransferToChannel
« on: September 08, 2016, 11:42:38 PM »
It seems odd that TransferToChannel(...) does not automagically set the channel id of the TNO.

with a static scene TNO -- tno.channelID remains 0 after using tno.TransferToChannel

  1. public static void SetChannelID(int id)
  2. {
  3.     instance.tno.TransferToChannel(id);
  4.     //instance.tno.channelID = id;//error
  5. }
  6.  

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: TransferToChannel
« Reply #1 on: September 08, 2016, 11:49:59 PM »
a dynamic TNO seems to be the better option...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TransferToChannel
« Reply #2 on: September 09, 2016, 03:09:58 PM »
Static objects can't be transferred. Only dynamically created objects can be transferred to another scene.