共用方式為


SCNNode.GetAnimation 方法

定義

多載

GetAnimation(NSString)

開發人員不應該使用此已被取代的方法。 開發人員應該改用 'GetAnimationPlayer'。

GetAnimation(String)

傳回所提供 key 所識別的動畫。

GetAnimation(NSString)

開發人員不應該使用此已被取代的方法。 開發人員應該改用 'GetAnimationPlayer'。

[Foundation.Export("animationForKey:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'GetAnimationPlayer' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'GetAnimationPlayer' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'GetAnimationPlayer' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreAnimation.CAAnimation GetAnimation (Foundation.NSString key);
[Foundation.Export("animationForKey:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'GetAnimationPlayer' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'GetAnimationPlayer' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'GetAnimationPlayer' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreAnimation.CAAnimation GetAnimation (Foundation.NSString key);
abstract member GetAnimation : Foundation.NSString -> CoreAnimation.CAAnimation
override this.GetAnimation : Foundation.NSString -> CoreAnimation.CAAnimation

參數

key
NSString

傳回

實作

屬性

適用於

GetAnimation(String)

傳回所提供 key 所識別的動畫。

public CoreAnimation.CAAnimation GetAnimation (string key);
member this.GetAnimation : string -> CoreAnimation.CAAnimation

參數

key
String

傳回

適用於