FairyGUI-Editor icon indicating copy to clipboard operation
FairyGUI-Editor copied to clipboard

Component using decimal pivot values are incorrectly saved

Open Armitage1982 opened this issue 2 years ago • 6 comments

Steps to reproduce the issue :

  1. Create any type of Component
  2. Inside this new component, Set the Pivot parameter to Center, the X and Y values change to 0,5
  3. Save the component
  4. Drop the component in the main scene (or any another component).
  5. The Pivot parameter values are now X : 0 and Y : 5

Expected behavior, X and Y value to 0,5

There must be a Dot vs Comma error somewhere. I tried to change my Windows Culture settings in order to use Dot or Comma, English or French, even an obscure Beta UTF-8 settings under Administrative System Local but nothing change the behavior of the editor.

This is an annoying bug since it makes anything related to position pivot buggy (animation, relation, control, etc.). Every time you change a component or drop a new one with decimal value, the pivot reset later to wrong values.

X : 0,5 Y : 2 become X : 0 Y : 5 X : 2,5 Y : 1,5 become X : 2 Y : 5 X : 1 Y : 2,5 become X : 1 Y : 2

FairyGUI Editor v2022.1.0p1

This may be related to another decimal bug https://github.com/fairygui/FairyGUI-Editor/issues/29#issue-1323007926

Armitage1982 avatar Jul 30 '22 12:07 Armitage1982

I confirm that changing the format of the region to "English (Europe)" solved the problem in my case. Changing manually the punctuation symbol for the decimal is not enough Clipboard01 .

Armitage1982 avatar Jul 30 '22 13:07 Armitage1982

OK, that should be a locale related issue.

xiaoguzhu avatar Sep 29 '22 12:09 xiaoguzhu

I've just hit this issue while trying to open a project created with different locale settings. Any idea when this will be fixed? If there's a source code of the editor available somewhere - I could try fixing it myself.

dekart avatar Mar 20 '24 13:03 dekart

Will fix this issue in Editor 6.0.0 which will release soon.

xiaoguzhu avatar Mar 21 '24 06:03 xiaoguzhu

Is it possible to somehow participate in the editor development/fixes? I'm strongly interested to see this product evolving so I could continue using it for my products :) I use Cocos Creator and familiar with Unity.

On Thu, 21 Mar 2024 at 07:59, guzhu @.***> wrote:

Will fix this issue in Editor 6.0.0 which will release soon.

— Reply to this email directly, view it on GitHub https://github.com/fairygui/FairyGUI-Editor/issues/30#issuecomment-2011338272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABOUA4TO357RRB7DEFSBDYZKAMHAVCNFSM55DEN7H2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBRGEZTGOBSG4ZA . You are receiving this because you commented.Message ID: @.***>

-- Aleksey V. Dmitriev CEO of Duck Rockets http://duckrockets.com

dekart avatar Mar 21 '24 16:03 dekart

Is it possible to somehow participate in the editor development/fixes? I'm strongly interested to see this product evolving so I could continue using it for my products :) I use Cocos Creator and familiar with Unity. On Thu, 21 Mar 2024 at 07:59, guzhu @.> wrote: Will fix this issue in Editor 6.0.0 which will release soon. — Reply to this email directly, view it on GitHub <#30 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABOUA4TO357RRB7DEFSBDYZKAMHAVCNFSM55DEN7H2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBRGEZTGOBSG4ZA . You are receiving this because you commented.Message ID: @.> -- Aleksey V. Dmitriev CEO of Duck Rockets http://duckrockets.com

Thank you for your willingness to participate, but unfortunately, Editor is NOT open source.

xiaoguzhu avatar Mar 22 '24 08:03 xiaoguzhu