GKEntity.GetComponent Method

Definition

Overloads

GetComponent(Class)
GetComponent(Type)

Retrieves the element in Components of the specified componentType.

GetComponent(Class)

[Foundation.Export("componentForClass:")]
protected virtual GameplayKit.GKComponent GetComponent (ObjCRuntime.Class componentClass);
abstract member GetComponent : ObjCRuntime.Class -> GameplayKit.GKComponent
override this.GetComponent : ObjCRuntime.Class -> GameplayKit.GKComponent

Parameters

componentClass
Class

Returns

GKComponent
Attributes

GetComponent(Type)

Retrieves the element in Components of the specified componentType.

public GameplayKit.GKComponent GetComponent (Type componentType);
member this.GetComponent : Type -> GameplayKit.GKComponent

Parameters

componentType
Type

Returns

GKComponent

Applies to