Playmaker Forum

Playmaker Updates & Downloads => Share New Actions => Topic started by: dudebxl on December 02, 2015, 07:43:05 AM

Title: ArrayList Find GameObjects Inside Collider
Post by: dudebxl on December 02, 2015, 07:43:05 AM
Add to an array all the objects (3d or 2d) which are inside a collider. Extension to http://hutonggames.com/playmakerforum/index.php?topic=11673.0

Filter by tag (obligatory) then optionally by layer.

2 actions:
- ArrayList Find GameObjects Inside Collider
- ArrayList Find GameObjects Inside Collider2D

on ecosystem or https://snipt.net/dudebxl/
Title: Re: ArrayList Find GameObjects Inside Collider
Post by: foxdeltagames on December 02, 2015, 11:01:26 AM
nice! this can come in handy :)
Title: Re: ArrayList Find GameObjects Inside Collider
Post by: Acavodo on July 15, 2017, 03:52:47 AM
Hi! Im trying to use this action for bomb effect.

Here's capture for my setting.


it is not finding any object which I tagged correctly.

I think "Collider Target" needs its own collider component right?

help !
Title: Re: ArrayList Find GameObjects Inside Collider
Post by: omgitstri on October 16, 2017, 10:34:05 AM
Hello,

I think I found a small bug about the action, it seems like the Root GameObject requires to have a Mesh Renderer for this action to add it to the Array List.

Right now I have a gameobject (Tile) within it I have a child gameobject (Mesh) so I could easily swap out the placeholder in the future and this is causing it to not add the Tile into the Array List.

A work-around that I'm using now is to add a MeshRenderer on the root gameobject with nothing in it so the action could detect it.

Tri Nguyen
Title: Re: ArrayList Find GameObjects Inside Collider
Post by: jeanfabre on October 16, 2017, 11:29:23 PM
Hi,

 I checked the action and yes, it's a requirement, is that a problem for your case?

 Bye,

 Jean
Title: Re: ArrayList Find GameObjects Inside Collider
Post by: omgitstri on October 17, 2017, 07:47:33 AM
Hello,

Maybe it's just my workflow that makes me think it's a bug.
I usually have the Root contain all the scripts/FSM and have its Child be the mesh, that way i could always update the mesh whenever I want to without having to add the script/FSM again. Because of this, my Root gameobject don't have a mesh renderer and that causes the action to not work.

Tri Nguyen
Title: Re: ArrayList Find GameObjects Inside Collider
Post by: omgitstri on October 18, 2017, 09:58:55 AM
Hello,

The action does not seem to work if it is on a prefab that gets instantiated.
I tested this by:

Tri Nguyen