Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component using decimal pivot values are incorrectly saved #30

Open
Armitage1982 opened this issue Jul 30, 2022 · 6 comments
Open

Component using decimal pivot values are incorrectly saved #30

Armitage1982 opened this issue Jul 30, 2022 · 6 comments

Comments

@Armitage1982
Copy link

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 #29 (comment)

@Armitage1982
Copy link
Author

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
.

@xiaoguzhu
Copy link
Member

OK, that should be a locale related issue.

@dekart
Copy link

dekart commented Mar 20, 2024

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.

@xiaoguzhu
Copy link
Member

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

@dekart
Copy link

dekart commented Mar 21, 2024 via email

@xiaoguzhu
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants