Class RectangleTransformSystem | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Class RectangleTransformSystem

    Takes entities with a RectangleTransform and writes out a Translation, Rotation, and Scale for them. These values are relative to the RectCanvas.

    Inputs are RectangleTransform + RectParent, outputs are RectSize and RectPosition. (FIXME horrible names)

    Inheritance
    Object
    ComponentSystemBase
    SystemBase
    RectangleTransformSystem
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    SystemBase.GetBuffer<T>(Entity)
    SystemBase.GetBufferFromEntity<T>(Boolean)
    Unity.Entities.SystemBase.OnCreateForCompiler()
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.ShouldRunSystem()
    ComponentSystemBase.GetComponentTypeHandle<T>(Boolean)
    ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetBufferTypeHandle<T>(Boolean)
    ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.TryGetSingleton<T>(T)
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.TryGetSingletonEntity<T>(Entity)
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.Time
    Namespace: Unity.Tiny.UI
    Syntax
    public class RectangleTransformSystem : SystemBase

    Fields

    m_MissingResultQueryCanvas

    Declaration
    protected EntityQuery m_MissingResultQueryCanvas
    Field Value
    Type Description
    EntityQuery

    m_MissingResultQueryChild

    Declaration
    protected EntityQuery m_MissingResultQueryChild
    Field Value
    Type Description
    EntityQuery

    Methods

    GetDepth(Entity, ComponentDataFromEntity<RectParent>)

    Declaration
    public static int GetDepth(Entity e, ComponentDataFromEntity<RectParent> RectParentFromEntity)
    Parameters
    Type Name Description
    Entity e
    ComponentDataFromEntity<RectParent> RectParentFromEntity
    Returns
    Type Description
    Int32

    GetFinalPosAndDepth(Entity, float2, ComponentDataFromEntity<RectTransformResult>, ComponentDataFromEntity<RectParent>, ComponentDataFromEntity<LocalToWorld>, out float2, out float4x4)

    Declaration
    public static int GetFinalPosAndDepth(Entity e, float2 localPosition, ComponentDataFromEntity<RectTransformResult> RectTransformResultFromEntity, ComponentDataFromEntity<RectParent> RectParentFromEntity, ComponentDataFromEntity<LocalToWorld> LocalToWorldFromEntity, out float2 finalPosition, out float4x4 localToWorld)
    Parameters
    Type Name Description
    Entity e
    float2 localPosition
    ComponentDataFromEntity<RectTransformResult> RectTransformResultFromEntity
    ComponentDataFromEntity<RectParent> RectParentFromEntity
    ComponentDataFromEntity<LocalToWorld> LocalToWorldFromEntity
    float2 finalPosition
    float4x4 localToWorld
    Returns
    Type Description
    Int32

    GetSortOrder(Entity, ComponentDataFromEntity<RectTransform>, ComponentDataFromEntity<RectParent>, NativeList<Int32>)

    Declaration
    public static int GetSortOrder(Entity entity, ComponentDataFromEntity<RectTransform> RectTransformFromEntity, ComponentDataFromEntity<RectParent> RectParentFromEntity, NativeList<int> depthSortMultiplier)
    Parameters
    Type Name Description
    Entity entity
    ComponentDataFromEntity<RectTransform> RectTransformFromEntity
    ComponentDataFromEntity<RectParent> RectParentFromEntity
    NativeList<Int32> depthSortMultiplier
    Returns
    Type Description
    Int32

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemBase.OnDestroy()

    OnStartRunning()

    Declaration
    protected override void OnStartRunning()
    Overrides
    ComponentSystemBase.OnStartRunning()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()
    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