-
Notifications
You must be signed in to change notification settings - Fork 529
Description
This is my Unity config:
Versions
Unity: 2017.3.1f1 (fc1d3344e6ea)
VRTK: 3.3.0 (may not be correct if source is GitHub)
SteamVR: 1.2.3
VR Settings
Standalone: None, OpenVR
Scripting Define Symbols
Standalone: VRTK_DEFINE_SDK_STEAMVR;VRTK_DEFINE_STEAMVR_PLUGIN_1_2_1_OR_NEWER;VRTK_DEFINE_STEAMVR_PLUGIN_1_2_2_OR_NEWER
WSA: VRTK_DEFINE_SDK_WINDOWSMR
WSA: VRTK_DEFINE_SDK_WINDOWSMR
I am workin on:
Version system: macOS 10.13.6 (17G65)
Version kernel: Darwin 17.7.0
In Editor all works fine. But when I am trying to build my demo I have in log:
07-20_08-56-30: Console Log (Exception): ShaderNotFoundException: GLTF/PbrMetallicRoughness not found. Did you forget to add it to the build?
UnityGLTF.StandardMap..ctor (System.String shaderName, System.Int32 MaxLOD) (at <6e2e72fb449c4779bd7a6f55349ab1e6>:0)
UnityGLTF.MetalRough2StandardMap..ctor (System.String shaderName, System.Int32 MaxLOD) (at <6e2e72fb449c4779bd7a6f55349ab1e6>:0)
UnityGLTF.MetalRoughMap..ctor (System.Int32 MaxLOD) (at <6e2e72fb449c4779bd7a6f55349ab1e6>:0)
UnityGLTF.GLTFSceneImporter.ConstructMaterial (GLTF.Schema.Material def, System.Int32 materialIndex) (at <6e2e72fb449c4779bd7a6f55349ab1e6>:0)
UnityGLTF.GLTFSceneImporter+c__Iterator11.MoveNext () (at <6e2e72fb449c4779bd7a6f55349ab1e6>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <4b58939e897a4c34942efe344ae250a9>:0)
So I am trying to include shader in "Graphics" settings as file:
But the build doesn't works. Unity freeze on creating globalgamemanagers.assets:
https://answers.unity.com/questions/918996/unity-5-freezes-while-building.html
Now I include GLTF/PbrMetallicRoughness.shader in Assets/Resources dir, but I have seen that PBR Materials doesn't work fine :_(
How to fix the issue? I would like to write a little guide of how create a perfect build with UnityGLTF.
Thanks you!
