playMaker

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

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Find Child VS Get Child? [SOLVED]
« on: September 15, 2017, 11: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, 01:09:33 PM by LordHorusNL »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Find Child VS Get Child?
« Reply #1 on: September 15, 2017, 12:57:59 PM »
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

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: Find Child VS Get Child?
« Reply #2 on: September 15, 2017, 01:08:53 PM »
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, 01:12:14 PM by LordHorusNL »