bdunderscore / modular-avatar

Other
476 stars 61 forks source link

Issue: Input type mismatch with MA Parameters default value #717

Open concertypin opened 6 months ago

concertypin commented 6 months ago

Runtime information:

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)

bdunderscore commented 6 months ago

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

concertypin commented 6 months ago

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 commented 5 months ago

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

bdunderscore commented 5 months ago

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 🙄