SyntaxBomb - Indie Coders

Languages & Coding => Unity => Topic started by: GfK on January 23, 2018, 20:52:52

Title: Fit object to bounds
Post by: GfK on January 23, 2018, 20:52:52
.
Title: Re: Fit object to bounds
Post by: Steve Elliott on January 24, 2018, 18:25:15
ENAY is probably the man to answer your question.  Hopefully he'll jump in at some point.
Title: Re: Fit object to bounds
Post by: ENAY on January 29, 2018, 03:34:32
Hi Dave, do you have it solved, except you're trying to get the scale to match up correctly to a certain size?

Not entirely sure what you're trying to achieve.

Have you seen this post?

https://answers.unity.com/questions/1268885/rescaling-mesh-or-gameobject-to-fit-in-gui-rect.html
Title: Re: Fit object to bounds
Post by: ENAY on January 30, 2018, 01:25:23
RenderToTexture in Unity is awesome. Good luck with your project Dave.

Not really related to your project but if you're fannying about with viewable and non viewable objects in and outside a hub. I highly recommend reading up on stencil shaders, for Z ordering, and hiding and showing objects in various camera was really handy.

Will only take up 10 mins your time. Just watch this video. I did and it really helped. :)

https://www.youtube.com/watch?v=xkcCWqifT9M&t=102s