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

    Class PhysicalShapeLayer

    Inheritance
    System.Object
    Layer
    ContainerLayer
    PhysicalShapeLayer
    Inherited Members
    ContainerLayer.layers
    ContainerLayer.add(Layer)
    ContainerLayer.prerollChildren(PrerollContext, Matrix3, Rect)
    ContainerLayer.paintChildren(PaintContext)
    Layer.parent
    Layer.paintBounds
    Layer.needsPainting
    Namespace: Unity.UIWidgets.flow
    Syntax
    public class PhysicalShapeLayer : ContainerLayer

    Constructors

    PhysicalShapeLayer(Clip)

    Declaration
    public PhysicalShapeLayer(Clip clipBehavior)
    Parameters
    Type Name Description
    Clip clipBehavior

    Properties

    color

    Declaration
    public Color color { set; }
    Property Value
    Type Description
    Color

    devicePixelRatio

    Declaration
    public float devicePixelRatio { set; }
    Property Value
    Type Description
    System.Single

    elevation

    Declaration
    public float elevation { set; }
    Property Value
    Type Description
    System.Single

    path

    Declaration
    public Path path { set; }
    Property Value
    Type Description
    Path

    shadowColor

    Declaration
    public Color shadowColor { set; }
    Property Value
    Type Description
    Color

    Methods

    drawShadow(Canvas, Path, Color, Single, Boolean, Single)

    Declaration
    public static void drawShadow(Canvas canvas, Path path, Color color, float elevation, bool transparentOccluder, float dpr)
    Parameters
    Type Name Description
    Canvas canvas
    Path path
    Color color
    System.Single elevation
    System.Boolean transparentOccluder
    System.Single dpr

    paint(PaintContext)

    Declaration
    public override void paint(PaintContext context)
    Parameters
    Type Name Description
    PaintContext context
    Overrides
    Layer.paint(PaintContext)

    preroll(PrerollContext, Matrix3)

    Declaration
    public override void preroll(PrerollContext context, Matrix3 matrix)
    Parameters
    Type Name Description
    PrerollContext context
    Matrix3 matrix
    Overrides
    ContainerLayer.preroll(PrerollContext, Matrix3)
    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