Class Mask | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Mask

    Inheritance
    System.Object
    Mask
    Namespace: PhotoshopFile
    Syntax
    public class Mask

    Constructors

    Mask(Layer)

    Declaration
    public Mask(Layer layer)
    Parameters
    Type Name Description
    Layer layer

    Mask(Layer, Rectangle, Byte, BitVector32)

    Declaration
    public Mask(Layer layer, Rectangle rect, byte color, BitVector32 flags)
    Parameters
    Type Name Description
    Layer layer
    Rectangle rect
    System.Byte color
    BitVector32 flags

    Properties

    BackgroundColor

    Declaration
    public byte BackgroundColor { get; set; }
    Property Value
    Type Description
    System.Byte

    Disabled

    Declaration
    public bool Disabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    Flags

    Declaration
    public BitVector32 Flags { get; }
    Property Value
    Type Description
    BitVector32

    ImageData

    Mask image data.

    Declaration
    public byte[] ImageData { get; set; }
    Property Value
    Type Description
    System.Byte[]

    InvertOnBlend

    if true, invert the mask when blending.

    Declaration
    public bool InvertOnBlend { get; set; }
    Property Value
    Type Description
    System.Boolean

    Layer

    The layer to which this mask belongs

    Declaration
    public Layer Layer { get; }
    Property Value
    Type Description
    Layer

    PositionVsLayer

    If true, the position of the mask is relative to the layer.

    Declaration
    public bool PositionVsLayer { get; set; }
    Property Value
    Type Description
    System.Boolean

    Rect

    The rectangle enclosing the mask.

    Declaration
    public Rectangle Rect { get; set; }
    Property Value
    Type Description
    Rectangle
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023