#So you might just call a Unity function

1 messages · Page 1 of 1 (latest)

azure gale
#

I need to call a function which returns a value from Swift to Unity, not vice versa

slender ivy
#

Yeah, you call the swift function, let swift do its thing and then let swift call a callback function on unity with its values.

azure gale
#

ahh ok I understand

slender ivy
#

Thats the easiest way to achieve this without hassle about different async threads or callback passing

azure gale
#

How do you call a callback function on unity from swift 😅