Table of Contents

Class OpenAssetImporter

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll

Implementation of the content importer for common open 3D asset formats

[ContentImporter(new string[] { ".dae", ".gltf", "glb", ".blend", ".3ds", ".ase", ".obj", ".ifc", ".xgl", ".zgl", ".ply", ".dxf", ".lwo", ".lws", ".lxo", ".stl", ".ac", ".ms3d", ".cob", ".scn", ".bvh", ".csm", ".irrmesh", ".irr", ".mdl", ".md2", ".md3", ".pk3", ".mdc", ".md5", ".smd", ".vta", ".ogex", ".3d", ".b3d", ".q3d", ".q3s", ".nff", ".off", ".ter", ".hmp", ".ndo" }, DisplayName = "Open Asset Import Library - MonoGame", DefaultProcessor = "ModelProcessor")]
public class OpenAssetImporter : ContentImporter<NodeContent>, IContentImporter
Inheritance
OpenAssetImporter
Implements
Inherited Members

Constructors

OpenAssetImporter()

Default constructor.

public OpenAssetImporter()

Properties

XnaComptatible

This disables some Assimp model loading features so that the resulting content is the same as what the XNA FbxImporter

public bool XnaComptatible { get; set; }

Property Value

bool

Methods

Import(string, ContentImporterContext)

Called by the framework when importing a game asset. This is the method called by XNA when an asset is to be imported into an object that can be recognized by the Content Pipeline.

public override NodeContent Import(string filename, ContentImporterContext context)

Parameters

filename string

Name of a game asset file.

context ContentImporterContext

Contains information for importing a game asset, such as a logger interface.

Returns

NodeContent

Resulting game asset.