MDLAsset.FromScene Method
Definition
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.
Overloads
FromScene(SCNScene, IMDLMeshBufferAllocator) |
Creates and returns a new Model IO asset from the provided Scene Kit scene, using the specified buffer allocator. |
FromScene(SCNScene) |
Creates and returns a new Model IO asset from the provided Scene Kit scene. |
FromScene(SCNScene, IMDLMeshBufferAllocator)
Creates and returns a new Model IO asset from the provided Scene Kit scene, using the specified buffer allocator.
[Foundation.Export("assetWithSCNScene:bufferAllocator:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static ModelIO.MDLAsset FromScene (SceneKit.SCNScene scene, ModelIO.IMDLMeshBufferAllocator bufferAllocator);
static member FromScene : SceneKit.SCNScene * ModelIO.IMDLMeshBufferAllocator -> ModelIO.MDLAsset
Parameters
- scene
- SCNScene
Returns
- Attributes
Applies to
FromScene(SCNScene)
Creates and returns a new Model IO asset from the provided Scene Kit scene.
[Foundation.Export("assetWithSCNScene:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public static ModelIO.MDLAsset FromScene (SceneKit.SCNScene scene);
static member FromScene : SceneKit.SCNScene -> ModelIO.MDLAsset
Parameters
- scene
- SCNScene
Returns
- Attributes