playMaker

Author Topic: Find Game Object From ID  (Read 3542 times)

Fletch

  • Junior Playmaker
  • **
  • Posts: 66
    • SneakOnTheLot.com
Find Game Object From ID
« on: July 23, 2013, 06:59:25 PM »
It would be nice to be able to find a game object by it's ID number in the game.  No way to do this currently

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Find Game Object From ID
« Reply #1 on: July 28, 2013, 12:11:14 PM »
Hi,

 Can you give a use case? go ID's are usually required for custom editors, not within your games, but you might have a good reason to do so :)

currently, I would suggest you simply save the reference of the gameObject itself, this is totally fine, and not much different then referencing an int ( where actually, I am pretty sure internaly, Unity refers to GameObject using this ID indeed)

bye,

 Jean