playMaker

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

Alatriste

  • Full Member
  • ***
  • Posts: 173
    • View Profile
Deactivate gameObject by Tag
« on: January 13, 2019, 02: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

  • Playmaker Newbie
  • *
  • Posts: 44
    • View Profile
Re: Deactivate gameObject by Tag
« Reply #1 on: January 13, 2019, 04: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: 14014
  • Official Playmaker Support
    • View Profile
Re: Deactivate gameObject by Tag
« Reply #2 on: January 14, 2019, 12: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: 173
    • View Profile
Re: Deactivate gameObject by Tag
« Reply #3 on: January 14, 2019, 01:12:18 AM »
Thanks Jean!