SCNAnimatable.AddAnimation Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
AddAnimation(CAAnimation, NSString) |
Adds |
AddAnimation(CAAnimation, String) |
Adds |
AddAnimation(SCNAnimationPlayer, NSString) |
Adds |
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
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
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
- player
- SCNAnimationPlayer
- key
- NSString
The animation player key.
- Attributes