Skip to content

UnityEvent.emit(0) fails #24

@GregoryPotdevin

Description

@GregoryPotdevin

I have a method passing array indexes from React to Unity code, and the code works for all values but 0.

It looks like there's a bug when trying to set a default value :
https://github.com/jeffreylanters/react-unity-webgl/blob/master/source/modules/UnityEvent.js#L13

parameter || ''

Falsy values are always replaced by an empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions