Skip to content

using unityContent.send does not work inside react hook "useeffect"  #79

@DanielAudaptic

Description

@DanielAudaptic

Describe the bug
using unityContent.send does not work inside react hook "useeffect". Method is not called in unity.

To Reproduce
React.useEffect(() => {
unityContent.send(
"TestObject",
"TestMethod",
10
);
}, [updatedParameter]);

Expected behavior
method should be called in unity

Desktop (please complete the following information):

  • Chrome
  • Unity 2019.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions