Author Topic: UIRoot and static GameOjbect children  (Read 1522 times)

Maxii

  • Jr. Member
  • **
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 55
    • View Profile
    • Strategic Forge
UIRoot and static GameOjbect children
« on: January 10, 2017, 01:51:53 PM »
I"ve been learning about GameObject.static. From what I read, since UIRoot scales the entire gui heirarchy (when using pixel perfect...), is it then true that I should never have a static Gui element underneath UI root, aka all Gui element game objects under UIRoot should be non-static?
I'm looking for an artist partner to complement my programming skill in developing a space-based Civilization-like empire building game, ala GalCiv2 or Distant Worlds based on Unity3D.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIRoot and static GameOjbect children
« Reply #1 on: January 13, 2017, 10:17:28 PM »
The way 'static' game object flag used to work, is if set it would make it so that changes to transform would be ignored. Currently in Unity 5 there are a lot of static flags though, not just one -- and I'm not sure if any of them behave like the old static flag used to.

Either way UI game objects should not be marked as static. There is a separate "static" flag on the UIPanel that you can choose -- consult its documentation for more info.