Click or drag to resize
Ab4d.SharpEngine logo

AssimpImporterImport(String, String) Method

Import method reads 3D models from the specified file and returns a GroupNode with imported 3D models. When PreserveNativeResourcesAfterImporting is true (false by default) then the native scene is stored into NativeAssimpScene property.

Namespace: Ab4d.SharpEngine.Assimp
Assembly: Ab4d.SharpEngine.Assimp (in Ab4d.SharpEngine.Assimp.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public GroupNode? Import(
	string fileName,
	string? texturesPath = null
)

Parameters

fileName  String
file name
texturesPath  String  (Optional)
optional: directory name where the textures files are; if null than the same path as fileName is used

Return Value

GroupNode
GroupNode with imported 3D models
See Also