UltraLiteDB could not be found

Hi I am getting the below error. I am adding a Muse Texture to my VR project (Open XR), but when I try to build the project to view via my VR headset below happens and stops the build. Do you have a suggestion please to resolve this?

Library/PackageCache/com.unity.muse.texture@0.3.1/Runtime/Pbr/Cache/PbrDataCache.cs(3,7): error CS0246: The type or namespace name ‘UltraLiteDB’ could not be found (are you missing a using directive or an assembly reference?)

Thank you

We can’t seem to reproduce this. For what platform are you trying to build?

On Android to work off Quest2.

I can use Muse, add texture fine in the Editor just not able to build.

If I delete all the textures and just have Muse attached on the Package Manager this happens as well.

Thank you

PS I can send more screenshot if needed.

Screenshot 2023-10-12 at 17.24.46

I also had this warning if it helps:

Saving has no effect. Your class ‘UnityEditor.XR.Simulation.XREnvironmentViewManager’ is missing the FilePathAttribute. Use this attribute to specify where to save your ScriptableSingleton.
Only call Save() and use this attribute if you want your state to survive between sessions of Unity.
UnityEditor.XR.Simulation.XREnvironmentViewManager:OnDisable () (at ./Library/PackageCache/com.unity.xr.arfoundation@5.0.7/Editor/Simulation/XREnvironmentViewManager.cs:169)

Hi @Tufftyboola,
With the screenshot you provided, we have been able to reproduce the bug. We have created a ticket to work on it. Thank you for reporting the issue. :slight_smile:

I got the same error today! Editor version 2022.3.5.f1. I see you were able to reproduce the bug and create a ticket to fix, but I just wanted to drop my screenshot and comment here as well.

image

If it help I was able to create Textures via another Unity project and import into my VR project. Then the build was successful, as long as Muse Textile package was removed from the VR project.

I also created the material using the URP, selecting all appropriate maps.

Same issue:
*com.unity.muse.texture@0.3.1/Runtime/Pbr/Cache/PbrDataCache.cs error
The type or namespace name ‘UltraLiteDB’ could not be found (are you missing a using directive or an assembly reference?)

2022.3.10f1 building to QuestPro.

Anyone have steps to fix the missing UltraLiteDB reference? Unclear how/why an editor / design time package has its tentacles in the project build?

yes, we probably forgot to protect the code with a #IF UNITY_EDITOR… sorry, our tool is editor only, it’s weird that it leaked in the runtime.

Any ETA on the update? or, perhaps we can figure out together where the code to update it.

@Bill_Cullen

Same problem here, UNITY 2022.3.11f, building for Quest 2/3. But building for Windows works fine.

Most probably. Meanwhile, having UltraLiteDB.dll (Release UltraLiteDB 1.4.2 · rejemy/UltraLiteDB · GitHub) in my ./Assets/Plugins did the trick. However, I do intend to use it in my project anyway, so it’s good for me. However, I have yet to explore the consequences of this leakage. Editor version 2023.2, in case.

yeah but you shouldn’t need it in your build :slight_smile: I am sure it builds now, but you’re just adding a DLL that isn’t used in your build!

Hi everyone,
We have a fix for this problem. We will release a new version soon, by the end of the week or early next week.
Thank you for your patience, and to have find workarounds in the meantime.

Muse Texture 0.4.1 is now released with the fix for UltraLiteDb. I hope it fixes the issue :slight_smile: Let me know if you have any problem.

Hi and thank you for resolving.

I can now use Muse Texture in my project and upload to my Meta Quest 2.

However I am getting several warnings around the “MuseMaterialShaderGraph”

One such example is below:
Shader warning in ‘Shader Graphs/MuseMaterialShaderGraph’: implicit truncation of vector type at /Applications/Unity/Hub/Editor/2022.3.11f1/Unity.app/Contents/CGIncludes/UnityShadowLibrary.cginc(62) (on vulkan)

Compiling Subshader: 1, Pass: BuiltIn ForwardAdd, Vertex program with SHADOWS_DEPTH SHADOWS_SOFT SPOT STEREO_MULTIVIEW_ON _ADDITIONAL_LIGHT_SHADOWS _ADDITIONAL_OFF _MAIN_LIGHT_SHADOWS
Platform defines: SHADER_API_MOBILE UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_RGBM_ENCODING UNITY_NO_CUBEMAP_ARRAY UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_RGBM UNITY_NO_SCREENSPACE_SHADOWS UNITY_PASS_FORWARDADD UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION
Disabled keywords: DIRECTIONAL DIRECTIONAL_COOKIE DIRLIGHTMAP_COMBINED FOG_EXP FOG_EXP2 FOG_LINEAR INSTANCING_ON LIGHTMAP_ON LIGHTMAP_SHADOW_MIXING POINT POINT_COOKIE SHADER_API_GLES30 SHADOWS_CUBE SHADOWS_SCREEN SHADOWS_SHADOWMASK UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_PBS_USE_BRDF1 UNITY_PBS_USE_BRDF2 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_VIRTUAL_TEXTURING USING_HDRP _ADDITIONAL_LIGHTS _ADDITIONAL_LIGHTS_VERTEX _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN _SCREEN_SPACE_OCCLUSION _SHADOWS_SOFT

I am nowhere near the experience level of yourself and others on this thread to know wether this is a warning just effecting me or in general or even if it is related.

I have had a look at the Shader Graph (for the experience) and noticed some nodes do not link to a similar number. Not sure if that is even relevant now but is the only thing I have to offer.

Anyway thank you and all the team are doing, this is a massive improvement to what I used to do on a shoe string budget.

Have a good weekend.

I am not sure what the warning shows? Are you going over the limit of Keywords? Is there a dumb down project you can zip and upload somewhere so we can access it?

Sorry if it’s not the help you wanted :confused: