googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
647 stars 191 forks source link

why iOS SDK can't set cardboard viewer parameters like android SDK and unity SDK #106

Closed AmonDeng closed 7 years ago

AmonDeng commented 8 years ago

I want to set cardboard viewer by code like Android can set by this func(static GvrViewerParams
createFromUri(Uri uri)) I want to know whether a similar approach iOS

nathanmartz commented 8 years ago

Thanks for this report. I agree that we should support this and have added it to our internal task tracker.

sanjayc77 commented 8 years ago

Is this something you need for the GVRWidgetView API or GVRCardboardView API? For example:

@interface GVRWidgetView : UIView
...
+ (void)setViewerParamsFromUrl:(NSURL *)url
                withCompletion:(void (^)(BOOL success, NSError *))completion;
...
@end
AmonDeng commented 8 years ago

Yes,you get my point

sanjayc77 commented 7 years ago

This is available in 1.10.0: https://developers.google.com/vr/ios/reference/interface_g_v_r_widget_view and https://developers.google.com/vr/ios/reference/interface_g_v_r_cardboard_view