docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GridPaintingState

    GridPaintingState controls the state of objects for painting with a Tile Palette.

    Inheritance
    object
    Object
    ScriptableObject
    ScriptableSingleton<GridPaintingState>
    GridPaintingState
    Inherited Members
    ScriptableSingleton<GridPaintingState>.Save(bool)
    ScriptableSingleton<GridPaintingState>.GetFilePath()
    ScriptableSingleton<GridPaintingState>.instance
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Tilemaps
    Assembly: Unity.2D.Tilemap.Editor.dll
    Syntax
    public class GridPaintingState : ScriptableSingleton<GridPaintingState>
    Remarks

    Utilize this class to get and set the current painting target and brush for painting with the Tile Palette.

    Properties

    Name Description
    activeBrushEditor

    The currently active editor for the active brush for the Tile Palette

    brushes

    Returns all available brushes for the Tile Palette

    gridBrush

    The currently active brush for the Tile Palette

    palette

    The currently active palette GameObject for the Tile Palette

    palettes

    Returns all available Palette GameObjects for the Tile Palette

    scenePaintTarget

    The currently active target for the Tile Palette

    validTargets

    A list of all valid targets that can be set as an active target for the Tile Palette

    Methods

    Name Description
    IsPartOfActivePalette(GameObject)

    Checks if target GameObject is part of the active Palette.

    Events

    Name Description
    brushChanged

    Callback when the Tile Palette's active brush has changed.

    paletteChanged

    Callback when the Tile Palette's active palette GameObject has changed.

    scenePaintTargetChanged

    Callback when the Tile Palette's active target has changed

    In This Article
    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