Documentation

Unity Engine

Download Unity

Unity Engine

ResetReplacementShader()

Remove shader replacement from camera.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
Warning
Deprecated. Camera.ResetReplacementShader is deprecated and will be removed in a future release. Shader replacement is supported only by the Built-In Render Pipeline, which is deprecated. It has no effect when a render pipeline is active. To render objects with a different shader, use a ScriptableRenderPass with DrawingSettings.overrideShader in the Universal Render Pipeline instead. #from(6000.7)
public void ResetReplacementShader()

Remarks

ResetReplacementShader
is deprecated and will be removed in a future release. Shader replacement is supported only by the Built-In Render Pipeline, which is deprecated. It has no effect when a render pipeline is active. To render objects with a different shader, use a ScriptableRenderPass with DrawingSettings.overrideShader in the Universal Render Pipeline instead.
Call this to end the effect of setting Camera.SetReplacementShader.