Skip to content

Issue with sendMessage #422

Aug 6, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Solved this issue by using useState & useEffect hooks

setconnectStatus("whatever)
const [connectStatus, setconnectStatus] = useState("")

  useEffect(() => {
    sendDataToUnity("ConnectWallet","ConnectResponse",connectStatus)
    return () => {
    }
  }, [connectStatus])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeffreylanters
Comment options

Answer selected by izmoonbtw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants