daemon3000 / InputManager

Custom InputManager for Unity
Other
587 stars 88 forks source link

DelayedIntField is better than IntField #29

Closed z3nth10n closed 7 years ago

z3nth10n commented 7 years ago

I've been squeezing my mind because I has some problem editing Axis from InputManager, because, they were deleted when I edited their sizes. I wasn't testing some bools, but searching in the Unity ScriptReference I see this:

https://docs.unity3d.com/ScriptReference/EditorGUILayout.DelayedIntField.html

@daemon3000 I suggest you to use them. The main problem here, is that if you are editing them, and you want to edit the value from 12 to 13, when you erase the 2 to write a 3, you resize it to 1, when you write 13, you have 12 values copied from the first value.

I had make some changes to your InputManagerEditor.cs. I forked and edit it, thanks!

Pull request: https://github.com/daemon3000/InputManager/pull/30

PD: Maybe there are a lot of changes, but this is caused because of Visual Studio.

daemon3000 commented 7 years ago

@Ikillnukes I merged your pull request.