Class RuleTile.TilingRule | 2D Tilemap Extras | 1.5.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class RuleTile.TilingRule

    Inheritance
    Object
    RuleTile.TilingRuleOutput
    RuleTile.TilingRule
    Inherited Members
    RuleTile.TilingRuleOutput.m_Id
    RuleTile.TilingRuleOutput.m_Sprites
    RuleTile.TilingRuleOutput.m_GameObject
    RuleTile.TilingRuleOutput.m_AnimationSpeed
    RuleTile.TilingRuleOutput.m_PerlinScale
    RuleTile.TilingRuleOutput.m_Output
    RuleTile.TilingRuleOutput.m_ColliderType
    RuleTile.TilingRuleOutput.m_RandomTransform
    Namespace: UnityEngine
    Syntax
    [Serializable]
    public class TilingRule : RuleTile.TilingRuleOutput

    Fields

    m_NeighborPositions

    • Preset this list to RuleTile backward compatible, but not support for HexagonalRuleTile backward compatible.
    Declaration
    public List<Vector3Int> m_NeighborPositions
    Field Value
    Type Description
    List<Vector3Int>

    m_Neighbors

    The matching Rule conditions for each of its neighboring Tiles.

    Declaration
    public List<int> m_Neighbors
    Field Value
    Type Description
    List<Int32>

    m_RuleTransform

    The transform matching Rule for this Rule.

    Declaration
    public RuleTile.TilingRuleOutput.Transform m_RuleTransform
    Field Value
    Type Description
    RuleTile.TilingRuleOutput.Transform

    Methods

    ApplyNeighbors(Dictionary<Vector3Int, Int32>)

    Declaration
    public void ApplyNeighbors(Dictionary<Vector3Int, int> dict)
    Parameters
    Type Name Description
    Dictionary<Vector3Int, Int32> dict

    GetBounds()

    Declaration
    public BoundsInt GetBounds()
    Returns
    Type Description
    BoundsInt

    GetNeighbors()

    Declaration
    public Dictionary<Vector3Int, int> GetNeighbors()
    Returns
    Type Description
    Dictionary<Vector3Int, Int32>
    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