Search Unity

Do empty game objects get included in a build?

Discussion in 'General Discussion' started by Tomnnn, Jul 28, 2015.

  1. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    I have a few UI groups based on my target platform's aspect ratio and I was wondering if having them in the scene but disabled would affect anything. They aren't prefabs, just groups under an empty in the hierarchy.
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Yes they are included but wont affect that much to anything. If they are only for editing purposes you can tag them as editor only.
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,658
    Yes, they're included. Each one will take up about 72 bytes, IIRC.
     
    Deleted User likes this.
  4. calmcarrots

    calmcarrots

    Joined:
    Mar 7, 2014
    Posts:
    654
    72 KB?!?! That's craaaaaaazy!
     
  5. Deleted User

    Deleted User

    Guest

    Bytes not KB's.. :D
     
  6. calmcarrots

    calmcarrots

    Joined:
    Mar 7, 2014
    Posts:
    654
    WHAT?!?! 72 MB?!?!?! THATS EVEN WORSE!


    edit: yes I know, Im just joking around :D :D :D
     
    aer0ace, Tomnnn, Ony and 1 other person like this.
  7. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    Oh. Are they included if they're tagged editor only?

    Is there a way to swap them around (possibly with the editor only tag) so I can use different ones that aren't included in each other's builds? If not, it's no big deal. I mean some old school programmers might get on my case about optimization but a few phones from now we'll have that tegra chip. 1Tflops. On mobile. lol.

    I'd probably be at almost 2kb then. This menu has many pages.
     
    Ony likes this.