Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: westingtyler on August 11, 2016, 12:41:54 AM

Title: get the dimensions of a meshed game object?
Post by: westingtyler on August 11, 2016, 12:41:54 AM
I want to get the world dimensions of a game object so I can set another object to fit it. like a picture frame auto resizing to fit whatever photo object I put on the table.

Is there any way to do this, to get an object's xyz dimensions? Not just scale, but its actual size.

I tried looking into the Rect variable... but i got the feeling that is related to arrays or something, not to actual physical rectangles in the scene.
Title: Re: get the dimensions of a meshed game object?
Post by: cwmanley on August 26, 2016, 07:45:56 PM
Hi,

GetBound Action
http://hutonggames.com/playmakerforum/index.php?topic=12133.msg56546#msg56546 (http://hutonggames.com/playmakerforum/index.php?topic=12133.msg56546#msg56546)

Renderer.bounds
http://docs.unity3d.com/ScriptReference/Renderer-bounds.html (http://docs.unity3d.com/ScriptReference/Renderer-bounds.html)

Cheers