Scaling to fit within box
Is it possible to scale an object to fit within a box (so that every object has the same size limits? I'm using this for a photo booth, and I would like to have a box that the camera is able to keep in frame.
asked Dec 19 '17 at 02:00 PM in Blueprint Scripting
You can calculate the Bounding Box of the object. With some divisions you can then calculate how much scale you need on which axis to fit it to a box you specify. If you want to do that dynamically, there is a Box struct, which you can use in Blueprints too.
answered Dec 19 '17 at 02:14 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here