Skip to content

Game.Prefabs.UITransportConfigurationData

Assembly: Game
Namespace: Game.Prefabs

Type: struct

Base: IComponentData, IQueryTypeParameter

Summary:
UITransportConfigurationData is an empty/tag ECS component (IComponentData) used to mark entities or prefabs that represent UI transport configuration data. The struct has an explicit layout attribute ([StructLayout(LayoutKind.Sequential, Size = 1)]) to force a 1-byte size instead of being a true zero-sized type; this can be useful for native interop and to avoid special-casing zero-sized components in some low-level code paths. Implementing IQueryTypeParameter indicates it is intended to be usable as a query type parameter within the Entities/DOTS query APIs.


Fields

  • (none)
    This struct defines no instance fields — it is used as a marker/tag component.

Properties

  • (none)
    No properties are defined.

Constructors

  • public UITransportConfigurationData()
    Structs have an implicit parameterless default constructor. This component is typically added/removed as a tag; no custom initialization data is required.

Methods

  • (none)
    No methods are declared on this type.

Usage Example

// Add the tag to an entity at conversion / baking time
public class SomePrefabBaker : Baker<SomePrefabAuthoring>
{
    public override void Bake(SomePrefabAuthoring authoring)
    {
        var entity = GetEntity(authoring);
        AddComponent<UITransportConfigurationData>(entity);
    }
}

// Or at runtime using an EntityManager or SystemBase
entityManager.AddComponent<UITransportConfigurationData>(someEntity);

// Check for the tag
if (entityManager.HasComponent<UITransportConfigurationData>(someEntity))
{
    // This entity represents UI transport configuration
}