- Home /
Add UIView to any Unity UI element (or maybe just to Transform) via some tricky wrapper?
Hello everyone!
I have a native iOS library with method like this:
- (UIView *)showSomeView;
And I want to write a native plugin that gives an ability to get UIView from method above and to add it as a subview to any Unity UI Component (or maybe just to Transform in certain position with certain frame) representation.
For example I have a Canvas with Image in Unity and want to add UILabel / UIButton from my native iOS library over that Image (with ability to handle it, forward taps, etc.).
I also need the same mechanism for Android.
Is it possible? Do you have any suggestions how to implement it?
Your answer
![](https://koobas.hobune.stream/wayback/20220612081402im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
iOS plugin and contact view 0 Answers
How do I look at a file generated by my own app on the iphone using xcode 0 Answers
Unity sounds not playing after AVAudioSession is disabled 1 Answer
iOS.RemoteNotification userInfo empty 2 Answers
IL2CPP C# passed ref float[] to C++ can't get right result 1 Answer