Modifier

Partager via


MDLAsset.FromScene Method

Definition

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
bufferAllocator
IMDLMeshBufferAllocator

To be added.

This parameter can be null.

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

Applies to