playMaker

Author Topic: Get closest child[Solved]  (Read 3137 times)

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Get closest child[Solved]
« on: November 18, 2013, 03:24:10 PM »
Hi,
could yo make such an action ?
I need to get the closest object to the mouse click inside a group of children.
Using tags or array would be to heavy for this setup as I am talking about dozens of small group.
thanks
yaniv
« Last Edit: December 05, 2013, 05:38:09 PM by Yanifska »
Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get closest child
« Reply #1 on: November 19, 2013, 01:15:53 AM »
Hi,

 Can you get back to me end of novembre on this?

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get closest child
« Reply #2 on: November 19, 2013, 01:18:40 AM »
Hi,

 and Actually, I would totally recommand you use this library:

http://www.differentmethods.com/packages/UnityExtender.pdf

It has a findclosest and so much more. I think making custom actions to support this would be a very good thing.

bye,

 Jean

Yanifska

  • Full Member
  • ***
  • Posts: 163
    • My Portfolio
Re: Get closest child
« Reply #3 on: December 05, 2013, 05:37:55 PM »
I bought this library but I wasn't able to use it as my c# is not so sharp(sic).
I finally added a ArrayMaker list and used the ArrayList Get Closest By Tag action.
I am afraid it is too heavy with arraymaker but it works.
Visit my portfolio: http://www.yanivcahoua.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get closest child[Solved]
« Reply #4 on: December 09, 2013, 01:58:01 PM »
Hi,

 don't worry, go with this, and profile, if it really turns out being a brake to performance, then you can look into optimizinh this very feature.

porting that library is not difficult, so please, bump me on this from time to time :)

bye,

 Jean