Author Topic: Change UIRoot at runtime  (Read 470 times)

eswat

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Change UIRoot at runtime
« 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 !