docs.unity3d.com
    目次を表示する/隠す

    Class TileLayoutUtils

    Utility for tiles layout

    Inheritance
    Object
    TileLayoutUtils
    Namespace: UnityEngine.Rendering
    Syntax
    public static class TileLayoutUtils : object

    Methods

    TryLayoutByCol(RectInt, UInt32, 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

    UInt32 tileSize

    The size of the tiles

    RectInt main

    Computed main area

    RectInt other

    Computed other area

    Returns
    Type Description
    Boolean

    If true, the tiles decomposition is a success

    TryLayoutByRow(RectInt, UInt32, 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

    UInt32 tileSize

    The size of the tiles

    RectInt main

    Computed main area

    RectInt other

    Computed other area

    Returns
    Type Description
    Boolean

    If true, the tiles decomposition is a success

    TryLayoutByTiles(RectInt, UInt32, 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

    UInt32 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
    Boolean

    If true, the tiles decomposition is a success

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)