SKSpriteNode.GetValue(String) 方法

定义

返回指定 key的属性值。

[Foundation.Export("valueForAttributeNamed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual SpriteKit.SKAttributeValue GetValue (string key);
override this.GetValue : string -> SpriteKit.SKAttributeValue

参数

key
String

指定要获取其值的属性的键。

返回

属性

适用于