Class EcsExtensions
Namespace: WukongMp.Api
Assembly: WukongMp.Api.dll
public static class EcsExtensions
Inheritanceâ
object â EcsExtensions
Inherited Membersâ
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methodsâ
GetComponent<T>(BGUActorBaseCS)â
Get a game ECS component of type T from the given actor.
public static T? GetComponent<T>(this BGUActorBaseCS actor) where T : UActorCompBaseCS
Parametersâ
actor BGUActorBaseCS
The actor to get the component from.
Returnsâ
T?
The component of type T if found; otherwise, null.
Type Parametersâ
T
The type of the component to get. Must be a subclass of UActorCompBaseCS.