mobfishgmbh / Cardboard-VR-Unity-SDK

Apache License 2.0
56 stars 11 forks source link

Import "mobfishCardboard-1.0-Release-2020-0808.unitypackage" error #81

Closed imkrystal closed 3 years ago

imkrystal commented 3 years ago

Hi mobifish!

Thank you for your amazing package. When I run in iOS 14, it worked!!! But when I create a new project => import "mobfishCardboard-1.0-Release-2020-0808.unitypackage", it's seem that error (see image i have attach).

Screen Shot 2020-11-04 at 15 57 25

How can I resolved this problem. I'm using Unity 2018.4.28f1.

Thank you so much!

Best Regards!

cdytoby commented 3 years ago

Thiss error message indicates that there are multiple "Protocol Buffer" dlls imported in this project. You should delete one of them. Either the dll from this plugin, or other plugins.

imkrystal commented 3 years ago

Hi @cdytoby Thank you for your answer. I check and see that I have 2 "Protobuf".

In your plugin:

Screen Shot 2020-11-05 at 10 20 39

Another in GoogleARCore:

Screen Shot 2020-11-05 at 10 21 17

You think that I should delete in your plugin or in GoogleARCore. It's safe and cardboard work normal when I delete "Protobuf" in your plugin?

Thank you so much. Best Regards!

cdytoby commented 3 years ago

Yes, make a backup and try it.

imkrystal commented 3 years ago

Delete "Protobuf" in your project it make error in Script so I deleted and backup "Protobuf" in GoogleARCore. I hope that nothing happen with me but I have a question:

cdytoby commented 3 years ago

I've never used ARKit or ARCore before so I don't really know. All I know is this plugin works for both iOS and Android. And there are some users already successfully implemented it with AR so I believe it's suppose to work with other plugins.

You can just try it yourself, this plugin don't gave people limitation, and all the source codes are here.

BTW, it's weird that delete Protobuf in this project will result errors when the other Protobuf exists.

imkrystal commented 3 years ago

Thank you for your answer. I will try this. "This is an unofficial Google Cardboard Unity SDK, implemented from new Google Cardboard open source project." => new Google Cardboard, you mean that is Google Cardboard XR Plugin right?

cdytoby commented 3 years ago

Yes, and no.

The new Google Cardboard SDK includes a Base SDK in C++, with a native Android and native iOS plugin. Unity Plugin is based on these native plugins, which also includes Subsystem for XR Plugin Management from Unity.

This repository uses the native Android and iOS plugin part, and doesn't use XR Plugin Management from Unity. Instead, it uses an old solution, which the first version of Cardboard for Unity did.

imkrystal commented 3 years ago

Thank you for your answer.

I hope that you plugin will have more functions, more optimizations, ... for a next release. Again. Thank you so much for amazing plugin. Maybe I will close this topic, if I have something need to know, I will open this topic again.

Best Regards!