How to load iPhone UIViewController from Unity3d? - iphone

I am developing one game application and i want to give login functionality to user. So i am planning to show Login view which is developed in xCode but how can i show it when my unity3d game is running. Means if user click on Login button from Unity3d it should show LoginView from xCode native.
can any body help me?

You'll have to use a plugin to interface between the Obj-C and Unity's C#. Here is the page that discusses plugins: http://docs.unity3d.com/Documentation/Manual/Plugins.html
At the bottom, there are some links to help you with setting up the code.
I believe that this is included in Unity iOS. Otherwise, it requires Unity Pro.

Related

Unity : How to test Oculus OVRinput through the editor? Workflow question

Here is my problem,
I'm using unity 2017.4.30 to develop an Oculus Go application. If anyone else has done this before you know that you can get Unity to build an APK and upload to the headset to test your software.
At the moment we are writing code to do with OVR Utilities, specifically OVRInput which basically is to do with the Oculus Go controller interacting with canvas or objects etc.
What I want to be able to do is test code we are writing in the editor and not have to upload the APK each time to test it. It seems some things like OVRCamera rig work in the editor fine but the controllers only show up when you run from the Oculus Go itself.
Any ideas how we could 'simulate' or 'virtualize' OVR controller in the editor so I can just click things with my mouse?
Thanks for reading,
If you do not want to write your own controller simulator, I'd suggest using the method oculus quest dev's have been using to quickly debug their game, which involves emulating a rift by using programs like ALVR or VirtualDesktop.
If set up correctly you'll be able to just press the play button in unity and instantly see your game on the oculus go.
The answer was the Oculus Link. When the Quest was connected to the PC via Link the Quest controllers where emulated inside unity. Problem solved.

In Unity 5.6, how to get inputs in Daydream mode without installing GVR SDK?

I am working on Unity 5.6.5f1 with VR enabled and Daydream selected for an Android app. So my application is working with daydream but I would like to get inputs from the Daydream remote (only a simple click). Is that possible without including the GVR sdk to my project?
Alternatively, can I catch a click on the on/off button or the sound level button of the phone in my app?
You need to import the GVR unity package so that you can access the GVRController class. Only then can you get the on click event.
I finally managed to catch clicks on the volume up and down buttons of the daydream remote control thanks to this post. Quite an ugly solution but it does the trick and provides two inputs.

Recreating iOS Camera app overlay buttons

I'm trying to recreate the Camera.app buttons and interface from iOS in my own, custom camera application built on GPUFilter. Specifically talking about the Flash, Options, and front vs back camera button toggle that are across the top of the app:
Curious to know if these are built into Storyboards as UI objects or if there's another easy way to recreate these without totally reprogramming. I'm also interested in using the overlay table view that they use (in picture above) for options.
Thanks!
You can using AVCamCaptureManager and AVCamRecorder classes. Apple has a demo program build on its developer site here.

Can Vuforia AR button open another view or app?

I'm making an app using unity and vuforia extension. When app will recognize an image it should show a button above it and, when the user presses it, I want to display a photo gallery. Is there a way to make this button trigger showing another UIView? Or show another app?
Yes, you can definitely do this. There are resources out there that will teach you how to create a plugin where you can launch an external UIView. For example: http://forum.unity3d.com/threads/56755-Unity-plugin-to-handle-loading-native-Cocoa-UI-s-with-ease
Also, you can open another app using Apple's URL scheme, described here:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

, how to open and close screen with effect like Facebook?

I'm using three20 for my dashboard.
(ttlauncher)
Now when I select a icon to open a screen
How do I make the screen open like Facebook? (small to big)
And close to return to the dashboard like Facebook? (big to small)
Do I need to modify the ui screens to use three20 aswell? Or the effect is standard iOS effects?
These are custom animations developed by the team who worked on the App.
If you download the Facebook iOS SDK you should be able to have a glimpse at how it's done by looking through the source code and using it as a reference.
https://github.com/facebook/facebook-ios-sdk
Of particular interest to you is the FBDialog class (which is a UIView subclass).