Author Topic: automatic tno ID ?  (Read 2285 times)

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
automatic tno ID ?
« on: September 02, 2013, 05:14:11 PM »
hello,
is there a way to get automaticly a ID to my TNobject ? or i have to set it myselft ? (it is for multiples environnements éléments, not instantiate mobs)

pyscho2day

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 74
    • View Profile
Re: automatic tno ID ?
« Reply #1 on: September 02, 2013, 05:17:57 PM »
in unity go to Component > TNet > Normalize IDs
This will set all static TNObject IDs starting from 1.
If the item is a prefab and will be instantiated then leave it at 0 as when it is spawned it will be assigned one at that time.

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: automatic tno ID ?
« Reply #2 on: September 03, 2013, 01:48:42 AM »
It work. Tank you