docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TileSet.TextureSource

    Source Assets required by the TileSet to generate Tiles from a Texture. This includes a Texture and a script template to generate Tiles from the Texture.

    Inheritance
    object
    TileSet.TextureSource
    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
    [Serializable]
    public class TileSet.TextureSource

    Properties

    texture

    Texture used to generate Tiles for the TileSet.

    Declaration
    public Texture2D texture { get; set; }
    Property Value
    Type Description
    Texture2D

    tileTemplate

    Script Template used to generate Tiles from the corresponding Texture. A default template will be used if no script template is provided.

    Declaration
    public TileTemplate tileTemplate { get; set; }
    Property Value
    Type Description
    TileTemplate
    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)