playMaker

Author Topic: Destroy Component - quick question[SOLVED]  (Read 921 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Destroy Component - quick question[SOLVED]
« on: July 21, 2015, 10:19:47 AM »
Hi, I'm currently pooling everything I can to help performance, but I do use a lot of "Destroy Component" and "Add Component" Do these actions have any impact on performance, as in the same way as create/destroy gameobjects?
Thanks for any help
« Last Edit: July 21, 2015, 11:33:34 AM by Splankton »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Destroy Component - quick question
« Reply #1 on: July 21, 2015, 10:25:25 AM »
It's not the super duper best, but unless you are actually seeing a performance impact on your target device then there isn't any reason to optimize it.

Splankton

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Destroy Component - quick question[SOLVED]
« Reply #2 on: July 21, 2015, 11:33:49 AM »
Ok, thanks Lane