Class EcsExtensions
Namespace: WukongMp.Api
Assembly: WukongMp.Api.dll
public static class EcsExtensions
Inheritance
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.