GKEntity.GetComponent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetComponent(Class) | |
| GetComponent(Type) |
Retrieves the element in Components of the specified |
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