IsMissingVariants when building to Oculus

I’m trying to use ready player me alongside convai. It runs fine from unity within the scene but I can’t build it, I keep getting:

NullReferenceException: Object reference not set to an instance of an object
ReadyPlayerMe.Core.Editor.GraphicsSettingsUtility.IsMissingVariants () (at ./Library/PackageCache/com.readyplayerme.core/Editor/Core/Scripts/Settings/GraphicsSettingsUtility.cs:95)
ReadyPlayerMe.Core.Editor.BuildPreprocessor.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at ./Library/PackageCache/com.readyplayerme.core/Editor/Core/Scripts/Processors/BuildPreprocessor.cs:22)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass16_0.b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at <45b9485b4ba64564b30d91e935218d54>:0)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List1[T] oneInterfaces, System.Action1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action1[T] invocationTwo, System.Boolean exitOnFailure) (at <45b9485b4ba64564b30d91e935218d54>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Any ideas?

Hi there!

Ready Player Me and Convai are different companies. Convai uses Ready Player Me avatars but that’s the extent of our collaboration. We can’t help you set Convai from here, but we recommend reaching out to their support team at:
Convai - Conversational AI for Virtual Worlds or seek instructions from their documentation here.

Just had the same issue. This has nothing to do with Convai.

This error is caused when the gITFastShaderVariants shader is missing in the graphics settings.

This is likely to have been caused if you remove and reinstalled the RPM package.


To resolve:

Go in to “Project Settings > Graphics”

Expand “Preloaded Shaders”

This is what I saw:

To fix, simply select gITFastShaderVariantsURP