Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: eswat on December 14, 2017, 11:24:32 AM

Title: Change UIRoot at runtime
Post by: eswat on December 14, 2017, 11:24:32 AM
Hi there,

Well, this is probably a noob question and may be I'm doing it wrong (I'm not programmer), but anyway I have an UIRoot scaling style to "Constrain On Mobiles" and content width set to fit.

I have one screen in my game I need to set the fit content to heigth and unchecked the content width fit. I know how to do this in code, but my feeling says to me it's a bit trivial and unsafe to change these value at runtime, so is it safe and the good way to do it ?

Thanks !