Search Unity

Work unit on Unity

Discussion in 'Editor & General Support' started by felchs, Jun 24, 2021.

  1. felchs

    felchs

    Joined:
    Jul 16, 2019
    Posts:
    21
    I know the unity uses 1 unit -> 1 meter as the default.

    Is there a way to change this on editor?
     
  2. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    Units are pretty much abstract, you can use any scale you want.
    The only thing that is in actual meters is gravity, if you're working in other unit you should change it.
     
  3. felchs

    felchs

    Joined:
    Jul 16, 2019
    Posts:
    21
    so, isn't there a way to change this globaly or even on the physics? e.g. I'm using 1 unit -> 1 milimeter

    I'd like Unity had a unity to just change cm, m,... other
     
  4. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    There's no need. If you want to use cm or yards, just treat the numbers as if they were.

    The only place you need to change, as I said, is the gravity value in your project settings.
     
  5. Because of floating point imprecision, it is not really advisable doing that. You can treat everything like that. But you need to change the gravity and calculate your own math like that.
    But you need to be especially aware that if you treat 1 unit = 1 millimeter, you can't have vast distances in the same context. Around 50000 unit the physics, movement and even positioning start to break down. So choose carefully.