Language

GLKMesh.FromAsset(MDLAsset, MDLMesh[], NSError) Method

Definition

Creates GLKit meshes from the meshes in a Model I/O asset.

public static GLKit.GLKMesh[]? FromAsset(ModelIO.MDLAsset asset, out ModelIO.MDLMesh[] sourceMeshes, out Foundation.NSError error);
public static GLKit.GLKMesh[]? FromAsset(ModelIO.MDLAsset asset, out ModelIO.MDLMesh[]? sourceMeshes, out Foundation.NSError? error);
static member FromAsset : ModelIO.MDLAsset * MDLMesh[] * NSError -> GLKit.GLKMesh[]

Parameters

asset
MDLAsset

The asset containing the source meshes.

sourceMeshes
MDLMesh[]

The Model I/O meshes corresponding to the returned GLKit meshes.

error
NSError

On failure, contains an error that describes the problem.

Returns

The created GLKit meshes, or null if they could not be created.

Applies to