UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

how to do UWP build unity2017.4.5f1

Open kknsy opened this issue 7 years ago • 8 comments

How to do

“the binaries in UnityGLTF\Assets\UnityGLTF\Plugins should be configured for everything but UWP. The binaries in UnityGLTF\Assets\UnityGLTF\Plugins\UWP should be configured for UWP”

not find Plugins\UWP and “error CS1704: An assembly with the same name `GLTFSerialization' has already been imported. Consider removing one of the references or sign the assembly”

kknsy avatar Dec 04 '18 09:12 kknsy

image

kknsy avatar Dec 04 '18 09:12 kknsy

I'm running into the same problem.

Edit: I temporarily sorted it with the brute solution of deleting the uap10.0.10586 and netstandard1.3 folders, leaving only the net35 folder, but that doesn't feel right or robust.

KermMartian avatar Dec 05 '18 06:12 KermMartian

Should now be fixed due to meta file copying I added in #315 . Let me know if this solves the problem.

blgrossMS avatar Dec 05 '18 07:12 blgrossMS

Thank you,There is still a little problem. image I deleted the extra files. image

Import HoloToolkit-Unity-2017.4.3.0.unitypackage

image image I blocked the code. image No problem with build and deployment,But it is not loaded in HoloLens, I am still looking for the reason. image

image

kknsy avatar Dec 05 '18 09:12 kknsy

@blgrossMS

kknsy avatar Dec 05 '18 09:12 kknsy

HoloToolkit doesn't work with the latest UnityGLTF due to API breaking changes. You will need to change the creation of the GLTFSceneImporter to either have an AsyncCoroutineHelper or be null with a large BudgetPerFrameInMilliseconds so that it will load the controller synchronously.

Also shader override is now specified via the CustomShaderName property on the GLTFSceneImporter.

I would open an issue on the MRTK to update to later version of UnityGLTF if that would be useful to you. :)

blgrossMS avatar Dec 05 '18 21:12 blgrossMS

@blgrossMS Thank you,I will try your suggestion

kknsy avatar Dec 06 '18 01:12 kknsy

@blgrossMS Now,I shader override is now specified via the CustomShaderName property on the GLTFSceneImporter,The metal on the surface of the object is abnormal image In UWP ,Can load normally but The loaded model is not ideal image image

kknsy avatar Dec 19 '18 09:12 kknsy