docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TileLayoutUtils

    Utility for tiles layout

    Inheritance
    object
    TileLayoutUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public static class TileLayoutUtils

    Methods

    TryLayoutByCol(RectInt, uint, out RectInt, out RectInt)

    Try decompose the givent rect into columns given the parameter

    Declaration
    public static bool TryLayoutByCol(RectInt src, uint tileSize, out RectInt main, out RectInt other)
    Parameters
    Type Name Description
    RectInt src

    The rect to split

    uint tileSize

    The size of the tiles

    RectInt main

    Computed main area

    RectInt other

    Computed other area

    Returns
    Type Description
    bool

    If true, the tiles decomposition is a success

    TryLayoutByRow(RectInt, uint, out RectInt, out RectInt)

    Try decompose the givent rect into rows given the parameter

    Declaration
    public static bool TryLayoutByRow(RectInt src, uint tileSize, out RectInt main, out RectInt other)
    Parameters
    Type Name Description
    RectInt src

    The rect to split

    uint tileSize

    The size of the tiles

    RectInt main

    Computed main area

    RectInt other

    Computed other area

    Returns
    Type Description
    bool

    If true, the tiles decomposition is a success

    TryLayoutByTiles(RectInt, uint, out RectInt, out RectInt, out RectInt, out RectInt)

    Try decompose the givent rect into tiles given the parameter

    Declaration
    public static bool TryLayoutByTiles(RectInt src, uint tileSize, out RectInt main, out RectInt topRow, out RectInt rightCol, out RectInt topRight)
    Parameters
    Type Name Description
    RectInt src

    The rect to split

    uint tileSize

    The size of the tiles

    RectInt main

    Computed main area

    RectInt topRow

    Computed top row area

    RectInt rightCol

    Computed right column area

    RectInt topRight

    Computed top right corner area

    Returns
    Type Description
    bool

    If true, the tiles decomposition is a success

    In This Article
    Back to top
    Copyright © 2024 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)