playMaker

Author Topic: gameobject reference when name changed ?  (Read 1036 times)

EverySingleSoldier

  • Playmaker Newbie
  • *
  • Posts: 26
gameobject reference when name changed ?
« on: October 01, 2021, 01:55:43 AM »
Hi,

If I take a few gameobjects (hex tiles path) and store it in an array list on the "unit gameobject" for later use (movement) , if the names of the original gameobjects (the hex path) are changed in real time in the game, will the array on the "unit gameobject" still reference the same gameobjects regardless of the subsequent name changes ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: gameobject reference when name changed ?
« Reply #1 on: October 02, 2021, 09:48:52 AM »
Hi.
Unity uses a GUID for reference so changing names would not affect :)