Skip to content

Ink Story converts floats based on user system regional settings #207

@tarnos12

Description

@tarnos12

I have a problem with Unity reading 0.234 as 0,234 when I parse a tag

This can be fixed by changing system regional format to USA(so it uses a dot instead of a comma)

Problem is that this does not save when the game is compiled, so other users will experience issues if their regional format is not set to something that uses dot for a float.

Is there something that I might need to change in Unity or ink compiler/config?

"audioambient:asset\'ambient_sanctuary_deep\',volume\'0,15\',loop\'0\'"

This is the tag from story.CurrentTags where volume is 0,15 instead of 0.15 which is based on my regional settings.

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