Skip to content

Component using decimal pivot values are incorrectly saved #30

@Armitage1982

Description

@Armitage1982

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions