playMaker

Author Topic: Find Child VS Get Child? [SOLVED]  (Read 87 times)

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Find Child VS Get Child? [SOLVED]
« on: September 15, 2017, 08:48:34 AM »
Hey guys i was just wondering if there was any real performance difference between the "Find Child" and "Get Child" actions?

I'm changing up my naming conventions and was wondering if i could switch to "Find Child" without seeing a drop in performance.
« Last Edit: September 15, 2017, 10:09:33 AM by LordHorusNL »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2254
    • View Profile
    • jinxtergames
Re: Find Child VS Get Child?
« Reply #1 on: September 15, 2017, 09:57:59 AM »
Hi,
From what i see in the code i think GetChild Has better performance.
But its better not to use find actions when not needed.

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Find Child VS Get Child?
« Reply #2 on: September 15, 2017, 10:08:53 AM »
Yep thats what i thought, i was just unsure if finding a child in a know hierarchy instead of in the scene would still cost more in performance.

Thanks djaydino. Gonna stick with GetChild then.
« Last Edit: September 15, 2017, 10:12:14 AM by LordHorusNL »