Struct Tilemap | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Tilemap

    A component that describes tiles in a grid layout.

    Namespace: Unity.Tiny.Tilemap2D
    Syntax
    public struct Tilemap : IComponentData

    Fields

    anchor

    The anchor point of each tile within its grid cell.

    Declaration
    public float3 anchor
    Field Value
    Type Description
    float3

    cellGap

    The gap between grid cells, in pixels.

    Declaration
    public float3 cellGap
    Field Value
    Type Description
    float3

    cellSize

    The size of grid cells, in pixels.

    Declaration
    public float3 cellSize
    Field Value
    Type Description
    float3

    position

    The position of each tile in its grid cell relative to anchor.

    Declaration
    public float3 position
    Field Value
    Type Description
    float3

    rotation

    The rotation of each tile in its grid cell relative to anchor

    Declaration
    public quaternion rotation
    Field Value
    Type Description
    quaternion

    scale

    The scale of each tile in its grid cell relative to anchor.

    Declaration
    public float3 scale
    Field Value
    Type Description
    float3
    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