Skip to main content

CharacterAppearanceSortLayers

Callable


  • Builds a filtered and sorted set of appearance layers, each representing a drawable layer of a character's current appearance. Layers that will not be drawn (because their asset is not visible or they do not permit the current asset type) are filtered out at this stage.


    Parameters

    • C: Character

      The character to build the layers for

    Returns Mutable<AssetLayer>[]

    • A sorted set of (shallow copied) layers, sorted by layer drawing priority