Share via


GKEntity.GetComponent Method

Definition

Overloads

Name Description
GetComponent(Class)
GetComponent(Type)

Retrieves the element in Components of the specified componentType.

GetComponent(Class)

[Foundation.Export("componentForClass:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
protected virtual GameplayKit.GKComponent? GetComponent(ObjCRuntime.Class componentClass);
[<Foundation.Export("componentForClass:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetComponent : ObjCRuntime.Class -> GameplayKit.GKComponent
override this.GetComponent : ObjCRuntime.Class -> GameplayKit.GKComponent

Parameters

componentClass
Class

Returns

Attributes

Applies to

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

Applies to