Tue 07/19/16
1) Xcode compilator revolution:
- Xcode 4: LLVM-GCC for default, but GCC still available.
- Xcode 4.2: LLVM 3.0 for default, GCC expropriated.
- Xcode 4.6: update to LLVM 4.2.
- Xcode 5: update to LLVM 5.0, LLVM-GCC expropriated. GCC to LLVM transition completed.
2) How to integrate Unity into iOS app.
https://github.com/armandsLa/ios-unity5-objc : Objective-C
https://github.com/blitzagency/ios-unity5 : Swift
https://github.com/keyv/iOSUnityVuforiaGuide
https://bitbucket.org/jack_loverde/unity-5-vuforia-6-and-ios-native-integration
3) How send data between Unity and iOS app.
http://alexanderwong.me/post/29861010648/call-objective-c-from-unity-call-unity-fromhttps://github.com/blitzagency/ios-unity5 : Swift
https://github.com/keyv/iOSUnityVuforiaGuide
https://bitbucket.org/jack_loverde/unity-5-vuforia-6-and-ios-native-integration
3) How send data between Unity and iOS app.
Integration of Unity:
1) Скопировать папки Classes и Libraries (Create groups). Добавить Data (Create folder references);
2) Удалить ссылки на все .h в папке Classes/Native и удалить папку Libraries/libil2cpp (Remove references);
3) Изменить код в UnityAppController.h;
inline UnityAppController* GetAppController()
{
return (UnityAppController*)[UIApplication sharedApplication].delegate;
}
на
NS_INLINE UnityAppController* GetAppController()
{
NSObject<UIApplicationDelegate>* delegate = [UIApplication sharedApplication].delegate;
UnityAppController* unityController = (UnityAppController *)[delegate valueForKey:@"unityController"];
return unityController;
}
4) Удалить из Compile sources дубликат main.mm из папки Classes;
5) Закомментить IMPL_APP_CONTROLLER_SUBCLASS(VuforiaNativeRendererController), если есть Vuforia.
Комментарии
Отправить комментарий