편집

다음을 통해 공유


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

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