- Home /
Question by
jay_kumar · Mar 26, 2020 at 03:38 PM ·
androidunity 5objective-c
How to return a native (iOS/Android) UIview object to Unity
Hi I am creating a UIView In objective -c as Below Code
-(UIView*)createLocalView{ //CGRect rect = UIScreen.mainScreen.bounds; float xAxis = 50; float yAxis = 20; UIView *view = [[UIView alloc] initWithFrame:CGRectMake(xAxis, yAxis, 100, 100)]; view.backgroundColor = [UIColor redColor]; return view; }
"createLocalView" i need to call from unity which return native UIview, After getting UIView i need to show that view over gameObject as "Material"
I have tried all possible way but still no luck.
I am new for unity and this is my first POC game app.
Comment