Search Unity

Did you know about this?

Discussion in 'General Discussion' started by Stardog, Mar 24, 2021.

  1. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    I've used Unity since 2010 and only just figured out you can use expressions :(:
    unity-gui.gif
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Well I'll be damned....

    Apparently it isn't even new, since after trying it in 2020.x I also notice it works in my 2018.2.21 project.
     
    BrandyStarbrite likes this.
  3. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,191
    I had no idea. Nice find!
     
    Joe-Censored likes this.
  4. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    It works in 2017.1 too.
     
    Joe-Censored likes this.
  5. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,139
    I think I used this back in 4.x too. I think it's just a native feature of the UI. You can also type infinity into some number fields, as well as a couple other terms.
     
    Martin_H and Joe-Censored like this.
  6. Bosozuki

    Bosozuki

    Joined:
    Dec 19, 2013
    Posts:
    63
    I had no idea unity supported expressions in the editor
    A youtube page called code monkey has been posting one minute tips similar to the above. A few of those I did not know about either.
     
  7. stain2319

    stain2319

    Joined:
    Mar 2, 2020
    Posts:
    417
    Huh. I knew you could do this in blender but never occurred to me to try it in unity. Neat!
     
    Joe-Censored likes this.
  8. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,334
    adamgolden, Martin_H, pcg and 2 others like this.
  9. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,977
    Ive been using this for ages, its great :D

    The stuff @Baste posted looks awesome! Cant wait for that to come out
     
  10. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    Using for some time now, don't remember my thirst time thou - must have been drunk ;)

    It would be cool if they made utility (runtime) out of this functionality. So we could create runtime math equations.
     
  11. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    I have used it since I started using Unity. But it would be ever cooler. If it kept the expression and didnt execute it.

    so if I enter 1/2 it stays and translates behind the scene to 0.5
     
  12. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
    It's in the latest alpha patch notes already!
     
    adamgolden and MadeFromPolygons like this.
  13. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Yup, that's just out in 2021.2a10! Happy expressioning.
     
  14. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,874
    There are many possibilities in the unity that there is no place for education for the public
    For example, holding the v key causes objects to snap to each vertex as they move
    Or by holding down alt, you can completely open or close a list childs

    I have been suffering from these issues for a long time
    Or, for example, buying a gaming mouse will not let you get bored while working with Unity ... especially when making the terrain
     
    Last edited: Mar 28, 2021