Share via


SCNLight.GetAttribute(NSString) 方法

定义

注意

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

返回名称的属性对象。

[Foundation.Export("attributeForKey:")]
[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 Foundation.NSObject GetAttribute (Foundation.NSString lightAttribute);
[Foundation.Export("attributeForKey:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSObject GetAttribute (Foundation.NSString lightAttribute);
abstract member GetAttribute : Foundation.NSString -> Foundation.NSObject
override this.GetAttribute : Foundation.NSString -> Foundation.NSObject

参数

lightAttribute
NSString

返回

属性

适用于