Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Show UIViewController over unity - 2 way communication

$
0
0
Hi,

I have a Unity app and would like to show a UIViewController over the top when I call a certain method in unity, I would then like to be able to pass data back into unity, can this be done?

Unity:
void ShowUIView() {
somethingToShowUIViewAndTransferFocus();
}
void FromViewController(int somecommand) {
}

iOS App, view controller loads. view controller button sends data back to Unity, and dismisses view controller

func viewDidLoad() {

}
func onButtonPress(sender:UIButton) {...

Show UIViewController over unity - 2 way communication

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>