Click or drag to resize

AssimpContextImportFile(String, PostProcessSteps) Method

Imports a model from the specified file. The importer sets configurations and loads the model into managed memory, releasing the unmanaged memory used by Assimp.

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public Scene ImportFile(
	string file,
	PostProcessSteps postProcessFlags
)

Parameters

file  String
Full path to the file
postProcessFlags  PostProcessSteps
Post processing flags, if any

Return Value

Scene
The imported scene
Exceptions
ExceptionCondition
AssimpExceptionThrown if there was a general error in importing the model.
FileNotFoundExceptionThrown if the file could not be located.
ObjectDisposedExceptionThrown if the context has already been disposed of.
See Also