Loads scene from the file.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static XScene FromFile(
	string fileName,
	params IXSceneExtensionReader[] readers
)

Parameters

fileName
Type: System..::.String
File with the saved scene.
readers
Type: array< SGP.XSpace..::.IXSceneExtensionReader >[]()[]
The optional IXSceneExtensionReader extensions.

Return Value

Returns new loaded scene.

Exceptions

ExceptionCondition
System..::.ArgumentNullException fileName is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also