Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Tuss on August 14, 2014, 04:37:52 PM

Title: Grouping 3D objects into one "clickable" Parent
Post by: Tuss on August 14, 2014, 04:37:52 PM
Hi everyone, :)
I have a question on grouping 3D objects into one Parent.

EmptyGameObject
-> Cube
-> Cube
-> Cube

Using my hierarchy above as an example, I would like it so that clicking on any of the 3 Cubes will call the "On Click" message of their parent, WITHOUT the Cubes themselves having any NGUI components.

Is this possible?


Best

- Troy
Title: Re: Grouping 3D objects into one "clickable" Parent
Post by: ArenMook on August 15, 2014, 07:34:32 AM
Put a rigidbody on it.

Might need the latest NGUI from the Pro repository though... I don't remember if it's a 3.7.0 feature or not. Might be, in which case -- wait for tonight's update.
Title: Re: Grouping 3D objects into one "clickable" Parent
Post by: Tuss on August 15, 2014, 01:38:59 PM
Hi ArenMook,

At the moment, I have tried with just a rigidbody and it still won't pick up my click message, unless I add a collider to the EmptyGameObject.   However, I will try adding a rigidbody again with tonight's patch.

Thank you for the assistance.  : )

- Tuss