finepointcgi / Materialize

Materialize Main Branch. Materialize is a program for converting images to materials for use in video games and other 3D applications.
GNU General Public License v3.0
100 stars 8 forks source link

Manual entry of values via keyboard vs sliders not working on 3.2.2 #7

Open ZacWolf opened 4 years ago

ZacWolf commented 4 years ago

Hello!

I just started using your updated codebase, and it looks like I'm not able to manually enter decimal numeric values into the various forms (vs using the sliders). If I use a decimal, whatever I type when I press enter it goes to the max value. It will accept INT values, just not decimal values.

THANKS!

finepointcgi commented 4 years ago

Hey,

I have fixed this issue and am doing a new release. Try this build in the mean time. https://drive.google.com/file/d/1Yx-VTJfvo4TWsVUE6FEZP0-87kV4ptYp/view?usp=sharing

Ninja Edit: Created a new release for this. https://github.com/mitchelldmccollum/Materialize/releases/tag/3.2.3

Thanks, Mitch

ZacWolf commented 4 years ago

So typing in a decimal value now allows setting that value, likewise that value remains on "lose focus" of that form field, BUT if you type a value and press Enter, it still reverts to an INT value. THANKS!

finepointcgi commented 4 years ago

Yeah, this is a limitation of the Unity Legacy GUI system. Once I move over to the newer system this will be fixed.

ZacWolf commented 4 years ago

I can work around not pressing Enter (just an old habit) until then, thanks! I'll leave it to you to close this now or when the new system is in place.

Thanks again for addressing the issues! I'm a Java developer, and I'm not making heads or tails of this codebase (assuming that's because it's built on top of Unity?). Is there any "starting point" you could recommend how to educate me on using Unity in this way? All the starter info I'm finding seems to be focused on game development, and while it may be the same paradigm I'm more interested in the GUI aspect vs the physics/game-play aspect. THANKs!

finepointcgi commented 4 years ago

Sure, Unitys framework really messes with how this operates. What id start with is looking at the Unity.ui system. Everything in unity needs to be hooked up to the scripts by dragging and dropping into the inspector. When you click a button you link it to a public function by dragging and dropping it into the button, it can be a heck of a problem.