SKShapeNode.SetValue(SKAttributeValue, String) 方法

定义

将 标识 key 的属性设置为 value

[Foundation.Export("setValue:forAttributeNamed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetValue (SpriteKit.SKAttributeValue value, string key);
override this.SetValue : SpriteKit.SKAttributeValue * string -> unit

参数

value
SKAttributeValue

要设置的属性值。

key
String

要设置的属性的键。

属性

适用于