Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Scripting Transform.eulerAngles change

Discussion in '5.4 Beta' started by nuverian, Apr 2, 2016.

  1. nuverian

    nuverian

    Joined:
    Oct 3, 2011
    Posts:
    2,081
    Hello,

    In v5.4, a rotation vector of the transform component set in the inspector to (0, 0, 500) it's 'eulerAngles' returns (0, 0, 140), where in v5.3 the exact same vector as seen in the inspector would be returned (0, 0, 500). This change can be helpfull sometimes, but not always and I think it's sneaky enough to break things without notice :). Can we somehow get the same vector shown in the inspector in v5.4 like it was done up until now?

    Edit
    --
    In regards to editor time
    --

    Thanks.
     
    Last edited: Apr 2, 2016
  2. Deecann

    Deecann

    Joined:
    Mar 17, 2010
    Posts:
    93
    In 5.3.4 when you set rotation in inspector to (0,0,500) after hit play the value will change to (0,0,140) so in script you will get eulerAngles (0,0,140). For me it's obvious.
     
  3. nuverian

    nuverian

    Joined:
    Oct 3, 2011
    Posts:
    2,081
    Hey,
    Sorry. I had to mention I'm talking about editor time.