SCNLight.SetAttribute(NSObject, NSString) 方法

定义

注意

Do not use; this method only exist in macOS, not in iOS.

将指定的特性设置为指定的值。

[Foundation.Export("setAttribute:forKey:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Obsolete("Do not use; this method only exist in macOS, not in iOS.", false)]
public virtual void SetAttribute (Foundation.NSObject value, Foundation.NSString attribuetKey);
[Foundation.Export("setAttribute:forKey:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetAttribute (Foundation.NSObject value, Foundation.NSString attribuetKey);
abstract member SetAttribute : Foundation.NSObject * Foundation.NSString -> unit
override this.SetAttribute : Foundation.NSObject * Foundation.NSString -> unit

参数

value
NSObject
attribuetKey
NSString
属性

适用于