playMaker

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

cleave

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Looking for an action like this...
« on: September 12, 2018, 08: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: 4379
    • View Profile
    • jinxtergames
Re: Looking for an action like this...
« Reply #1 on: September 12, 2018, 10:54:13 PM »
Hi.
Maybe you can use "Activate Component" or "Activate Components"?
and if needed you can use "Get Component" to get it from the child.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions

cleave

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: Looking for an action like this...
« Reply #2 on: September 12, 2018, 11:31:49 PM »
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
    • View Profile
Re: Looking for an action like this...
« Reply #3 on: September 12, 2018, 11:34:54 PM »
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: 4379
    • View Profile
    • jinxtergames
Re: Looking for an action like this...
« Reply #4 on: September 13, 2018, 01: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.
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions