Undefined Queue: 'Opaque' in EDITOR, since installing 4.2.1f4

Hi,

Anyone else have this problem.
I installed 4.2.1f4 and then upgrade a work-in-progress project, nothing too complicated.

Now in Editor (not running code, just sitting there…) I get 4 errors “Undefined Queue: ‘Opaque’”, the last of which has supplementary message “UnityEditor.DockArea:OnGUI()”

There is no further error information available.

No error reports found via google or in forums.

I’m using NGUI in that project.


I then created a new project, again with NGUI but no other items. No error.
I used NGUI UI Wizard to create a simple 2D GUI on a new layer (8) called GUI… error doesn’t happen.

From reading around ‘opaque unity’ results on google, seems like may be shader related in some bizarre way.

If anyone could point me in the right direction,I would be grateful.

Cheers

Peter

If you use custom shaders, the Queue for RenderType Opaque is Geometry (or nothing as Gemortry is the Default), thus you must use the Tag “Queue”=“Geometry”, not “Queue”=“Opaque”

http://docs.unity3d.com/Documentation/Components/SL-SubshaderTags.html

1 Like

@uani
Thank you for the pointer… I’ll dig around, must be something in there using a custom shader.

I have this error also and have manually gone through all my shaders to find what could be causing the problem. I found one shader that used the tag Queue=Opaque and changed it to Queue = Geometry but I still get the error message.

The only reference I can find to opaque now is in subshaders but I don’t see any queue language there.

Any help is appreciated.

I finally found the offending shaders by going through each scene and hitting play. I hope this helps someone else. : )