playMaker

Author Topic: Deactivate gameObject by Tag  (Read 1574 times)

Alatriste

  • Full Member
  • ***
  • Posts: 193
Deactivate gameObject by Tag
« on: January 13, 2019, 04:21:47 AM »
I recently had to use this action in my project and I couldn't find it in the Ecosystem. I think I took it from the forum, so maybe it would be a good idea to upload it? (I had to dig into another project to find it)

Maart

  • Junior Playmaker
  • **
  • Posts: 88
Re: Deactivate gameObject by Tag
« Reply #1 on: January 13, 2019, 06:12:05 PM »
maybe post this action in "Share New Actions" instead of "Action Requests"

it's a cool action, I could think of many use cases

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Deactivate gameObject by Tag
« Reply #2 on: January 14, 2019, 02:17:00 AM »
Hi,

 ok, I added it to the Ecosystem with some mods

it's now called ActivateGameObjectsByTag, and let you define if you want to active or deactivate :) Warning: activating is costly on large scene as it uses a different technic to be able to find inactive objects.

Bye,

 Jean

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Deactivate gameObject by Tag
« Reply #3 on: January 14, 2019, 03:12:18 AM »
Thanks Jean!