Enum DrawMode | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Enum DrawMode

    Drawing mode used by Sprite2DRendererOptions When a sprite size is manually set, the drawing mode specifies how the sprite fills the area.

    Namespace: Unity.Tiny.Core2D
    Syntax
    [IdAlias("a7ae2ef1f120627af99607cbecca330e")]
    public enum DrawMode

    Fields

    Name Description
    AdaptiveTiling

    Adaptively tiles the sprite. When the target area is smaller, the sprite is scaled down, like in Stretch mode. If the area is larger a combination of scaling and tiling is used, that minimizes scaling but always tiles complete tiles.

    ContinuousTiling

    Tiles the sprite continuously if the area is larger than the source sprite, or cuts it off it is smaller.

    Stretch

    Scale the sprite to fill the new area.

    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