playMaker

Author Topic: getting total width of nested group of objects  (Read 839 times)

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
getting total width of nested group of objects
« on: March 22, 2016, 05:05:14 PM »
Is there a way to of getting the total width of an empty game object with nested game objects in it?

I am dynamically creating a group of objects nested within an empty parent game object. I want to get the total width of the entire group, and be able to always keep that centered on screen. To do this, I need to get the total width of the group.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15483
  • Official Playmaker Support
    • View Profile
Re: getting total width of nested group of objects
« Reply #1 on: March 25, 2016, 02:44:30 AM »
Hi,

 Yes, it's possible, however I don't think there is a custom action for this.

http://forum.unity3d.com/threads/calculating-a-bound-of-a-grouped-model.101121/

Can you ping me next week. I'll so a custom action if you haven't been able to script it.

Bye,

 Jean