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