Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader.Find("Hidden/TextureLerp") failure when playing a pre-built application. #156

Open
tsujihaneta opened this issue Oct 24, 2023 · 1 comment

Comments

@tsujihaneta
Copy link

Unity 2022.3.1f1

The following errors occur.

ArgumentNullException: Value cannot be null.
Parameter name: shader
at Unity.MaterialSwitch.MaterialPropertyBlockManager.BlendTextureProperties (System.Single weight, Unity.MaterialSwitch.MaterialProperties globalMap, Unity.MaterialSwitch.MaterialProperties map) [0x00000] in <00000000000000000000000000000000>:0
at Unity.MaterialSwitch.MaterialPropertyBlockManager.BlendPalettePropertyMap (System.Single weight, Unity.MaterialSwitch.MaterialProperties globalMap, Unity.MaterialSwitch.MaterialProperties map) [0x00000] in <00000000000000000000000000000000>:0
at Unity.MaterialSwitch.MaterialSwitchMixerPlayableBehaviour.UpdateMaterialPropertyBlockManagers (UnityEngine.Playables.Playable playable) [0x00000] in <00000000000000000000000000000000>:0
at Unity.MaterialSwitch.MaterialSwitchMixerPlayableBehaviour.ProcessFrame (UnityEngine.Playables.Playable playable, UnityEngine.Playables.FrameData info, System.Object playerData) [0x00000] in <00000000000000000000000000000000>:0

Registering "Hidden/TextureLerp" to Always Included Shaders in ProjectSettings made the error disappear.

@tsujihaneta tsujihaneta changed the title Shader.Find("Hidden/TextureLerp") failure when building the application. Shader.Find("Hidden/TextureLerp") failure when playing a pre-built application. Oct 24, 2023
@sindharta
Copy link
Collaborator

Thank you for your report. We'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants