UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

GLTF.Schema.CameraType is defined multiple times

Open soadzoor opened this issue 8 years ago • 8 comments

Hey,

I'm having troubles opening up the Unity Project, and also building the GLTFSerializer. I've tried to do everything as it can be found in README, there may be some steps I'm missing. I'm using unity's latest version (2018.2.12f1), if that matters.

Here are a few screenshots about my problems: capture capture2 capture3

And this is what happens when I try the "release" package: capture4

I'm a rookie when it comes to Unity, or to this tool. Any help is appreciated!

soadzoor avatar Oct 13 '18 20:10 soadzoor

No one? :(

soadzoor avatar Oct 17 '18 14:10 soadzoor

The build project is having problems it seems because the GLTFSerialization dlls in your plugins folder need to be marked as UWP vs Standalone/editor.

The release version not working is a different issue

blgrossMS avatar Oct 17 '18 15:10 blgrossMS

Thank you for answering @blgrossMS . Finally, I was able to build the GLTFSerialization solution from VS 2017 community with checking the "Allow unsafe" checkbox for the projects. However, it doesn't seem to be working with the newest Unity version. I tried the older one mentioned in README (5.6.5f1), and with that, it seems to be partially working: exporting works. Importing doesn't give errors, but assets only appear on runtime. Is that a normal behavior?

Any reason why it doesn't work at all with the latest unity versions? Is it just me? Also, what does dlls in your plugins folder need to be marked as UWP vs Standalone/editor. mean? How do I mark them as UWP?

Thank you, and sorry for my noob questions

soadzoor avatar Oct 17 '18 15:10 soadzoor

@soadzoor these settings for Assets/UnityGLTF/Plugins/UWP/GLTFSerializationUWP.dll worked for me: unitygltfuwpsettings

robertlong avatar Oct 25 '18 04:10 robertlong

Hi @robertlong , thanks for the answer.

Okay, so that was one of the problems: there's no information in the README that I should import this dll straight into unity. Also, when I do, I get this window (as you can see I don't have SDK option to choose UWP): capture

soadzoor avatar Oct 25 '18 10:10 soadzoor

Hmm. Maybe you don't have the UWP target installed and so it doesn't show up? You can just uncheck all the platforms then.

Hopefully there's a way to automate setting these properties on the dlls after they are compiled. I guess the packaging script can run a small C# script that sets all of those properties correctly Or you could modify the .meta file directly but that sounds a bit dangerous.

robertlong avatar Oct 25 '18 17:10 robertlong

Thanks for getting back, and sorry for being so late with my answer. I'm pretty sure I checked the UWP checkboxes when I installed unity. Anyway, I finally got it working somehow. Although the README could be more "noob friendly", like step-by-step. I think that would help people like me, and also that would prevent these questions from coming up regularly

soadzoor avatar Nov 08 '18 19:11 soadzoor

We now copy meta files from the built GLTFSerialization.sln. This should fix your issue.

ericob avatar Jan 04 '19 22:01 ericob