playMaker

Author Topic: Looking for an action like this...  (Read 1086 times)

cleave

  • Playmaker Newbie
  • *
  • Posts: 27
Looking for an action like this...
« on: September 12, 2018, 11:40:31 PM »
are there any actions about Enable_Child_Object_Mesh_Render (could be enable by name, tag etc.)

I tried to search in ecosystem, It seems nothing there.

Anybody could help? Thanks a lot.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Looking for an action like this...
« Reply #1 on: September 13, 2018, 01:54:13 AM »
Hi.
Maybe you can use "Activate Component" or "Activate Components"?
and if needed you can use "Get Component" to get it from the child.

cleave

  • Playmaker Newbie
  • *
  • Posts: 27
Re: Looking for an action like this...
« Reply #2 on: September 13, 2018, 02:31:49 AM »
Is that going to cost huge of performance if I use "Activate Component" "Find Activate Component" "get Component" a lot?

cleave

  • Playmaker Newbie
  • *
  • Posts: 27
Re: Looking for an action like this...
« Reply #3 on: September 13, 2018, 02:34:54 AM »
Hi.
Maybe you can use "Activate Component" or "Activate Components"?
and if needed you can use "Get Component" to get it from the child.

I am using mesh render instead of "Activate Object" a lot to save performance, I know there is "Activate Child Object"etc., but I did not find any actions like "Enable Child Mesh render".

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Looking for an action like this...
« Reply #4 on: September 13, 2018, 04:39:18 AM »
Hi.
If you have the child object as a variable you can use the 'get component', then activate the component.
it should not give performance issues

'find' any thing, you should stay away from (if possible).

When you create or pool 'gameobjects' place them in an array or variables to reference them.