docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TileUtility

    Utility class for creating Tiles

    Inheritance
    object
    TileUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Tilemaps
    Assembly: Unity.2D.Tilemap.Editor.dll
    Syntax
    public class TileUtility

    Methods

    CreateDefaultTile()

    Creates a Tile with defaults based on the Tile preset

    Declaration
    public static Tile CreateDefaultTile()
    Returns
    Type Description
    Tile

    A Tile with defaults based on the Tile preset

    DefaultTile(Sprite)

    Creates a Tile with defaults based on the Tile preset and a Sprite set

    Declaration
    public static TileBase DefaultTile(Sprite sprite)
    Parameters
    Type Name Description
    Sprite sprite

    A Sprite to set the Tile with

    Returns
    Type Description
    TileBase

    A Tile with defaults based on the Tile preset and a Sprite set

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)