Unity Engine documentationScript ReferenceUnityEngineUnityEngine.RenderingStencilOpReplaceReplace the stencil buffer value with reference value (specified in the shader).Read time 1 minuteLast updated 5 days agoDefinition Type: Field Namespace: UnityEngine.Rendering Assembly: UnityEngine.CoreModule Replace = 2