docs.unity.cn
    Show / Hide Table of Contents

    Enum CanvasScaler.Unit

    The possible physical unit types

    Namespace: UnityEngine.UI
    Syntax
    public enum Unit

    Fields

    Name Description Value
    Centimeters

    Use centimeters. A centimeter is 1/100 of a meter


    0
    Millimeters

    Use millimeters. A millimeter is 1/10 of a centimeter, and 1/1000 of a meter.


    1
    Inches

    Use inches.


    2
    Points

    Use points. One point is 1/12 of a pica, and 1/72 of an inch.


    3
    Picas

    Use picas. One pica is 1/6 of an inch.


    4
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023