KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
67 stars 8 forks source link

UI - MixerState.Transition2D & very narrow Inspector - flexible vs fixed widths of input fields could be optimized #90

Closed LarsJandel closed 3 years ago

LarsJandel commented 3 years ago

Environment

Description

MixerState.Transition2D: The Speed field has a fixed width, even when the Inspector gets very narrow. Using the MixerState.Transition2D, the Inspector being wider, the input fields extend nice: The Thresholds fields stop adapting at some point, the Speed field stays at it's fixed width and only the Animation field gets wider. On the other hand, when narrowing the window, the Thresholds do continiously adapt, but the Speed field stays at it's fixed width. I think, the Speed field should behave like the Thresholds as it probably doesn't need that many digits and this would allow more space for the Animation names. Context: I like to work/learn using Peek and a maximized scene window, while having an additional Inspector to the side. Using my workstation and an ultra wide monitor, this additional Inspector has a good width, but when using my laptop, it can get quite narrow in order to have as much screen estate for the main window as possible. I don't know, if you can optimize this behaviour or if this is a limitation of Unity itself. 🤷‍♂️ Thanks!

Reproduction

Steps to reproduce the bug:

  1. Go to Examples/03 Locomotion/04 Directional Blending/Directional Blending
  2. Select the Spider Bot game object
  3. Inspector: Twirl open the Move section, exposing the MixerState.Transition2D fields
  4. Narrow the Inspector window
  5. See the adaptive/fixed widths of Animation, Threshold, Speed fields

MixerTransitionFields

KybernetikGames commented 3 years ago

This should be relatively easy to fix. I'll take a look at it for the next version.

On Tue., 29 Dec. 2020, 2:04 am Lars Jandel, notifications@github.com wrote:

Environment

  • Animancer Version Number: v6.0
  • Animancer Pro or Lite: Pro
  • Unity Version: 2020.2.1f1
  • Platform: Windows

Description

MixerState.Transition2D: The Speed field has a fixed width, even when the Inspector gets very narrow. Using the MixerState.Transition2D, the Inspector being wider, the input fields extend nice: The Thresholds fields stop adapting at some point, the Speed field stays at it's fixed width and only the Animation field gets wider. On the other hand, when narrowing the window, the Thresholds do continiously adapt, but the Speed field stays at it's fixed width. I think, the Speed field should behave like the Thresholds as it probably doesn't need that many digits and this would allow more space for the Animation names. Context: I like to work/learn using Peek and a maximized scene window, while having an additional Inspector to the side. Using my workstation and an ultra wide monitor, this additional Inspector has a good width, but when using my laptop, it can get quite narrow in order to have as much screen estate for the main window as possible. I don't know, if you can optimize this behaviour or if this is a limitation of Unity itself. 🤷‍♂️ Thanks! Reproduction

Steps to reproduce the bug:

  1. Go to Examples/03 Locomotion/04 Directional Blending/Directional Blending
  2. Select the Spider Bot game object
  3. Inspector: Twirl open the Move section, exposing the MixerState.Transition2D fields
  4. Narrow the Inspector window
  5. See the adaptive/fixed widths of Animation, Threshold, Speed fields

[image: MixerTransitionFields] https://user-images.githubusercontent.com/32457827/103221697-86d94100-4923-11eb-8dc9-58d75bc06101.gif

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/KybernetikGames/animancer/issues/90, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNMTM3RUJE6TXRQVKFSBJDSXCNAFANCNFSM4VMEB6ZQ .

KybernetikGames commented 3 years ago

Animancer v7.0 is now available with this fix in it.