modular-avatar icon indicating copy to clipboard operation
modular-avatar copied to clipboard

Issue: Input type mismatch with MA Parameters default value

Open concertypin opened this issue 1 year ago • 4 comments
trafficstars

Runtime information:

  • Windows 11 22H2
  • Unity 2022.3.6f1 with Windows, Mac, Linux build target
  • Modular Avatar 1.9.4, NDMF 1.3.6

https://github.com/bdunderscore/modular-avatar/blob/8e6d8302ef5d6899f152d56649c81a8db3e38046/Editor/Inspector/Parameters/DefaultValueField.cs#L45

In this line, MA tries to parse input string to float regardness of parameter type. image (This is not throwing FormatException)

concertypin avatar Mar 01 '24 17:03 concertypin

What is the behavior you see, and what did you expect to see?

bdunderscore avatar Mar 02 '24 00:03 bdunderscore

When Parameter type is not float, Default field should be int field or checkbox. But in this, Default is float field regardness of param type.

concertypin avatar Mar 03 '24 08:03 concertypin

The issue still persists. Any development or information about this?

concertypin avatar Mar 30 '24 12:03 concertypin

This is a fairly minor issue which is difficult to resolve in the UI Elements framework. I’ll get to it eventually, but probably not before I finish moving 🙄

bdunderscore avatar Mar 30 '24 19:03 bdunderscore