Class DisplayListSystem | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class DisplayListSystem

    Collects and sorts entities by camera, and readies them for rendering. Rendering and hit testing do not consider changes made to entities after the display list is created.

    Inheritance
    System.Object
    DisplayListSystem
    Namespace: Unity.Tiny.Core2D
    Syntax
    public class DisplayListSystem : ComponentSystem

    Fields

    dlMakerReg

    Declaration
    protected static List<IExternalDisplayListEntryMaker> dlMakerReg
    Field Value
    Type Description
    System.Collections.Generic.List<IExternalDisplayListEntryMaker>

    groupMain

    Declaration
    protected EntityQuery groupMain
    Field Value
    Type Description
    EntityQuery

    Methods

    AddItemsToListByType(IExternalDisplayListEntryMaker, DisplayListCamera, Camera2D, DynamicBuffer<DisplayListEntry>, DynamicBuffer<SortedEntity>)

    Declaration
    protected void AddItemsToListByType(IExternalDisplayListEntryMaker dlm, DisplayListCamera dlc, Camera2D c2d, DynamicBuffer<DisplayListEntry> dest, DynamicBuffer<SortedEntity> destSorted)
    Parameters
    Type Name Description
    IExternalDisplayListEntryMaker dlm
    DisplayListCamera dlc
    Camera2D c2d
    DynamicBuffer<DisplayListEntry> dest
    DynamicBuffer<SortedEntity> destSorted

    AddLayerFilter(ref EntityQueryBuilder, Camera2D)

    Declaration
    protected void AddLayerFilter(ref EntityQueryBuilder query, Camera2D c2d)
    Parameters
    Type Name Description
    EntityQueryBuilder query
    Camera2D c2d

    BoundsAreOutside(Rect, float4x4, float2)

    Declaration
    public static bool BoundsAreOutside(Rect r, float4x4 m, float2 unitSize)
    Parameters
    Type Name Description
    Rect r
    float4x4 m
    float2 unitSize
    Returns
    Type Description
    System.Boolean

    ClipBitsNorm(float2, float2)

    Declaration
    protected static int ClipBitsNorm(float2 p, float2 unitSize)
    Parameters
    Type Name Description
    float2 p
    float2 unitSize
    Returns
    Type Description
    System.Int32

    DeRegisterExternalDisplayListEntryMaker(Int32)

    Declaration
    public static void DeRegisterExternalDisplayListEntryMaker(int typeIndex)
    Parameters
    Type Name Description
    System.Int32 typeIndex

    FinishDisplayListEntry(ref DisplayListEntry, ref DisplayListCamera, ref LocalToWorld, ref PrivateTransformData, Boolean)

    Declaration
    protected bool FinishDisplayListEntry(ref DisplayListEntry de, ref DisplayListCamera dlc, ref LocalToWorld tx, ref PrivateTransformData ptd, bool doNotClip)
    Parameters
    Type Name Description
    DisplayListEntry de
    DisplayListCamera dlc
    LocalToWorld tx
    PrivateTransformData ptd
    System.Boolean doNotClip
    Returns
    Type Description
    System.Boolean

    OnCreate()

    Declaration
    protected override void OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()

    RegisterDisplayListEntryMaker(IExternalDisplayListEntryMaker)

    Declaration
    public static void RegisterDisplayListEntryMaker(IExternalDisplayListEntryMaker m)
    Parameters
    Type Name Description
    IExternalDisplayListEntryMaker m

    SetCameraLayerComponent<T>(Int32)

    Declaration
    public void SetCameraLayerComponent<T>(int layerIndex)
    Parameters
    Type Name Description
    System.Int32 layerIndex
    Type Parameters
    Name Description
    T

    SortExternal(Void*, Void*, Int32)

    Declaration
    protected static void SortExternal(void *sortedEntities, void *groups, int n)
    Parameters
    Type Name Description
    System.Void* sortedEntities
    System.Void* groups
    System.Int32 n

    UpdateOneDisplayListCamera(Entity, ref Camera2D, ref DisplayListCamera, ref LocalToWorld, Single)

    Declaration
    protected int UpdateOneDisplayListCamera(Entity e, ref Camera2D cam, ref DisplayListCamera dlcCam, ref LocalToWorld tx, float primaryAspect)
    Parameters
    Type Name Description
    Entity e
    Camera2D cam
    DisplayListCamera dlcCam
    LocalToWorld tx
    System.Single primaryAspect
    Returns
    Type Description
    System.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