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

    Class RecorderCanvas

    Inheritance
    System.Object
    RecorderCanvas
    CommandBufferCanvas
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class RecorderCanvas : Canvas

    Constructors

    RecorderCanvas(PictureRecorder)

    Declaration
    public RecorderCanvas(PictureRecorder recorder)
    Parameters
    Type Name Description
    PictureRecorder recorder

    Fields

    _recorder

    Declaration
    protected readonly PictureRecorder _recorder
    Field Value
    Type Description
    PictureRecorder

    Methods

    clipPath(Path)

    Declaration
    public void clipPath(Path path)
    Parameters
    Type Name Description
    Path path
    Implements
    Canvas.clipPath(Path)

    clipRect(Rect)

    Declaration
    public void clipRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Implements
    Canvas.clipRect(Rect)

    clipRRect(RRect)

    Declaration
    public void clipRRect(RRect rrect)
    Parameters
    Type Name Description
    RRect rrect
    Implements
    Canvas.clipRRect(RRect)

    concat(Matrix3)

    Declaration
    public void concat(Matrix3 matrix)
    Parameters
    Type Name Description
    Matrix3 matrix
    Implements
    Canvas.concat(Matrix3)

    drawArc(Rect, Single, Single, Boolean, Paint)

    Declaration
    public void drawArc(Rect rect, float startAngle, float sweepAngle, bool useCenter, Paint paint)
    Parameters
    Type Name Description
    Rect rect
    System.Single startAngle
    System.Single sweepAngle
    System.Boolean useCenter
    Paint paint
    Implements
    Canvas.drawArc(Rect, Single, Single, Boolean, Paint)

    drawCircle(Offset, Single, Paint)

    Declaration
    public void drawCircle(Offset c, float radius, Paint paint)
    Parameters
    Type Name Description
    Offset c
    System.Single radius
    Paint paint
    Implements
    Canvas.drawCircle(Offset, Single, Paint)

    drawDRRect(RRect, RRect, Paint)

    Declaration
    public void drawDRRect(RRect outer, RRect inner, Paint paint)
    Parameters
    Type Name Description
    RRect outer
    RRect inner
    Paint paint
    Implements
    Canvas.drawDRRect(RRect, RRect, Paint)

    drawImage(Image, Offset, Paint)

    Declaration
    public void drawImage(Image image, Offset offset, Paint paint)
    Parameters
    Type Name Description
    Image image
    Offset offset
    Paint paint
    Implements
    Canvas.drawImage(Image, Offset, Paint)

    drawImageNine(Image, Rect, Rect, Paint)

    Declaration
    public void drawImageNine(Image image, Rect center, Rect dst, Paint paint)
    Parameters
    Type Name Description
    Image image
    Rect center
    Rect dst
    Paint paint
    Implements
    Canvas.drawImageNine(Image, Rect, Rect, Paint)

    drawImageNine(Image, Rect, Rect, Rect, Paint)

    Declaration
    public void drawImageNine(Image image, Rect src, Rect center, Rect dst, Paint paint)
    Parameters
    Type Name Description
    Image image
    Rect src
    Rect center
    Rect dst
    Paint paint
    Implements
    Canvas.drawImageNine(Image, Rect, Rect, Rect, Paint)

    drawImageRect(Image, Rect, Paint)

    Declaration
    public void drawImageRect(Image image, Rect dst, Paint paint)
    Parameters
    Type Name Description
    Image image
    Rect dst
    Paint paint
    Implements
    Canvas.drawImageRect(Image, Rect, Paint)

    drawImageRect(Image, Rect, Rect, Paint)

    Declaration
    public void drawImageRect(Image image, Rect src, Rect dst, Paint paint)
    Parameters
    Type Name Description
    Image image
    Rect src
    Rect dst
    Paint paint
    Implements
    Canvas.drawImageRect(Image, Rect, Rect, Paint)

    drawLine(Offset, Offset, Paint)

    Declaration
    public void drawLine(Offset from, Offset to, Paint paint)
    Parameters
    Type Name Description
    Offset from
    Offset to
    Paint paint
    Implements
    Canvas.drawLine(Offset, Offset, Paint)

    drawOval(Rect, Paint)

    Declaration
    public void drawOval(Rect rect, Paint paint)
    Parameters
    Type Name Description
    Rect rect
    Paint paint
    Implements
    Canvas.drawOval(Rect, Paint)

    drawParagraph(Paragraph, Offset)

    Declaration
    public void drawParagraph(Paragraph paragraph, Offset offset)
    Parameters
    Type Name Description
    Paragraph paragraph
    Offset offset
    Implements
    Canvas.drawParagraph(Paragraph, Offset)

    drawPath(Path, Paint)

    Declaration
    public void drawPath(Path path, Paint paint)
    Parameters
    Type Name Description
    Path path
    Paint paint
    Implements
    Canvas.drawPath(Path, Paint)

    drawPicture(Picture)

    Declaration
    public void drawPicture(Picture picture)
    Parameters
    Type Name Description
    Picture picture
    Implements
    Canvas.drawPicture(Picture)

    drawRect(Rect, Paint)

    Declaration
    public void drawRect(Rect rect, Paint paint)
    Parameters
    Type Name Description
    Rect rect
    Paint paint
    Implements
    Canvas.drawRect(Rect, Paint)

    drawRRect(RRect, Paint)

    Declaration
    public void drawRRect(RRect rrect, Paint paint)
    Parameters
    Type Name Description
    RRect rrect
    Paint paint
    Implements
    Canvas.drawRRect(RRect, Paint)

    drawShadow(Path, Color, Single, Boolean)

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

    drawTextBlob(TextBlob, Offset, Paint)

    Declaration
    public void drawTextBlob(TextBlob textBlob, Offset offset, Paint paint)
    Parameters
    Type Name Description
    TextBlob textBlob
    Offset offset
    Paint paint
    Implements
    Canvas.drawTextBlob(TextBlob, Offset, Paint)

    flush()

    Declaration
    public virtual void flush()
    Implements
    Canvas.flush()

    getDevicePixelRatio()

    Declaration
    public virtual float getDevicePixelRatio()
    Returns
    Type Description
    System.Single
    Implements
    Canvas.getDevicePixelRatio()

    getSaveCount()

    Declaration
    public int getSaveCount()
    Returns
    Type Description
    System.Int32
    Implements
    Canvas.getSaveCount()

    getTotalMatrix()

    Declaration
    public Matrix3 getTotalMatrix()
    Returns
    Type Description
    Matrix3
    Implements
    Canvas.getTotalMatrix()

    reset()

    Declaration
    public void reset()
    Implements
    Canvas.reset()

    resetMatrix()

    Declaration
    public void resetMatrix()
    Implements
    Canvas.resetMatrix()

    restore()

    Declaration
    public void restore()
    Implements
    Canvas.restore()

    rotate(Single, Offset)

    Declaration
    public void rotate(float radians, Offset offset = null)
    Parameters
    Type Name Description
    System.Single radians
    Offset offset
    Implements
    Canvas.rotate(Single, Offset)

    save()

    Declaration
    public void save()
    Implements
    Canvas.save()

    saveLayer(Rect, Paint)

    Declaration
    public void saveLayer(Rect rect, Paint paint)
    Parameters
    Type Name Description
    Rect rect
    Paint paint
    Implements
    Canvas.saveLayer(Rect, Paint)

    scale(Single, Nullable<Single>)

    Declaration
    public void scale(float sx, float? sy = default(float? ))
    Parameters
    Type Name Description
    System.Single sx
    System.Nullable<System.Single> sy
    Implements
    Canvas.scale(Single, Nullable<Single>)

    setMatrix(Matrix3)

    Declaration
    public void setMatrix(Matrix3 matrix)
    Parameters
    Type Name Description
    Matrix3 matrix
    Implements
    Canvas.setMatrix(Matrix3)

    skew(Single, Single)

    Declaration
    public void skew(float sx, float sy)
    Parameters
    Type Name Description
    System.Single sx
    System.Single sy
    Implements
    Canvas.skew(Single, Single)

    translate(Single, Single)

    Declaration
    public void translate(float dx, float dy)
    Parameters
    Type Name Description
    System.Single dx
    System.Single dy
    Implements
    Canvas.translate(Single, Single)
    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