Application.ExternalCall equivalent for iOS Unity

Hi,

I have integrated a Unity app inside of my existing iOS UIKit app but require to be able to pass a parameter into the Unity player. Basically the Unity player loads content from a dynamic URL, I need to be able to pass in the dynamic URL to the Unity player from UIKit.

Does Unity for iOS provide some sort of Application.ExternalCall function with which I can call a method inside the Unity app from within UIKit? Or alternatively, can I get Unity to read a value I’ve set in NSUserDefaults?

Many thanks,
Dan

1 Answer

1

You will have to create a plugin, inside the plugin code you can get at the core ios method calls. Then you can create yourself public methods for use inside unity.