共用方式為


SCNView.PresentScene(SCNScene, SKTransition, SCNNode, Action) 方法

定義

顯示提供的場景。

[Foundation.Export("presentScene:withTransition:incomingPointOfView:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentScene (SceneKit.SCNScene scene, SpriteKit.SKTransition transition, SceneKit.SCNNode pointOfView, Action completionHandler);
[Foundation.Export("presentScene:withTransition:incomingPointOfView:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentScene (SceneKit.SCNScene scene, SpriteKit.SKTransition transition, SceneKit.SCNNode pointOfView, Action completionHandler);
abstract member PresentScene : SceneKit.SCNScene * SpriteKit.SKTransition * SceneKit.SCNNode * Action -> unit
override this.PresentScene : SceneKit.SCNScene * SpriteKit.SKTransition * SceneKit.SCNNode * Action -> unit

參數

scene
SCNScene

要呈現的場景。

transition
SKTransition

用來呈現場景的轉譯。

pointOfView
SCNNode

要呈現場景的檢視點。

completionHandler
Action

顯示場景之後要執行的處理常式。

屬性

適用於