After cleaning up my camera prefab containing stuff of the outline effect, the Material references got lost and, although not in play mode, OnRenderImage has been called and spammed my console with null reference exception logs.
I solved the problem by adding the following lines to the class:
After cleaning up my camera prefab containing stuff of the outline effect, the Material references got lost and, although not in play mode,
OnRenderImage
has been called and spammed my console with null reference exception logs.I solved the problem by adding the following lines to the class:
This way the materials where created as soon as I selected the GameObject containing the OutlineEffect.