編輯

共用方式為


SCNAnimatable.AddAnimation Method

Definition

Overloads

AddAnimation(CAAnimation, NSString)

Adds animation, identified with the specified key.

AddAnimation(CAAnimation, String)

Adds animation, identified with the specified key.

AddAnimation(SCNAnimationPlayer, NSString)

Adds player, identified with the specified key.

AddAnimation(CAAnimation, NSString)

Adds animation, identified with the specified key.

[Foundation.Export("addAnimation:forKey:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public abstract void AddAnimation (CoreAnimation.CAAnimation animation, Foundation.NSString key);
abstract member AddAnimation : CoreAnimation.CAAnimation * Foundation.NSString -> unit

Parameters

animation
CAAnimation

The animation to add.

key
NSString

The animation key.

Implements

Attributes

Applies to

AddAnimation(CAAnimation, String)

Adds animation, identified with the specified key.

public void AddAnimation (CoreAnimation.CAAnimation animation, string key = null);
member this.AddAnimation : CoreAnimation.CAAnimation * string -> unit

Parameters

animation
CAAnimation

The animation to add.

key
String

The animation key.

Applies to

AddAnimation(SCNAnimationPlayer, NSString)

Adds player, identified with the specified key.

[Foundation.Export("addAnimationPlayer:forKey:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual void AddAnimation (SceneKit.SCNAnimationPlayer player, Foundation.NSString key);
abstract member AddAnimation : SceneKit.SCNAnimationPlayer * Foundation.NSString -> unit
override this.AddAnimation : SceneKit.SCNAnimationPlayer * Foundation.NSString -> unit

Parameters

key
NSString

The animation player key.

Attributes

Applies to