I created simple script that changes renderQueue of object in Awake().
And now I want to see changes of renderQueue immediately in editor.
I tried to write an Editor script for it. But Unity creates temp material and shows error message saying that i must use sharedMaterial(not the renderer.material) inside editor. But it won't work for me.
Can you advice me the workaround?
And now I want to see changes of renderQueue immediately in editor.
I tried to write an Editor script for it. But Unity creates temp material and shows error message saying that i must use sharedMaterial(not the renderer.material) inside editor. But it won't work for me.
Can you advice me the workaround?