docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StencilStateData

    Container class for stencil rendering settings.

    Inheritance
    object
    StencilStateData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.Universal
    Assembly: Unity.RenderPipelines.Universal.Runtime.dll
    Syntax
    [Serializable]
    public class StencilStateData

    Fields

    failOperation

    The stencil operation to use when the stencil test fails.

    Declaration
    public StencilOp failOperation
    Field Value
    Type Description
    StencilOp

    overrideStencilState

    Used to mark whether the stencil values should be overridden or not.

    Declaration
    public bool overrideStencilState
    Field Value
    Type Description
    bool

    passOperation

    The stencil operation to use when the stencil test passes.

    Declaration
    public StencilOp passOperation
    Field Value
    Type Description
    StencilOp

    stencilCompareFunction

    The comparison function to use.

    Declaration
    public CompareFunction stencilCompareFunction
    Field Value
    Type Description
    CompareFunction

    stencilReference

    The stencil reference value.

    Declaration
    public int stencilReference
    Field Value
    Type Description
    int

    zFailOperation

    The stencil operation to use when the stencil test fails because of depth.

    Declaration
    public StencilOp zFailOperation
    Field Value
    Type Description
    StencilOp
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)