Skip to content

Class ComponentType<T> ​

Namespace: KenseiECS

Provides the unique type index for component type T. First access registers the type and assigns an index.

csharp
public static class ComponentType<T> where T : struct, IComponent

Type Parameters ​

T

Inheritance ​

object ← ComponentType<T>

Inherited Members ​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Fields ​

Index ​

Unique index of T, assigned on first access.

csharp
public static readonly int Index

Field Value ​

int