Loads a scene from a file.
Namespace:
SGP.BaltieAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public bool LoadScene( string fileName, bool loadBalties, bool throwIfException, params IXSceneExtensionReader[] readers ) |
Parameters
- fileName
- Type: System..::.String
File with the definition of the scene.
- loadBalties
- Type: System..::.Boolean
Indicates whether Balties should be loaded as well.
- throwIfException
- Type: System..::.Boolean
Indicates whether exception should be thrown or an error dialog displayed if an error occurs.
- readers
- Type: array<
SGP.XSpace..::.IXSceneExtensionReader
>[]()[]
Extensions IXSceneExtensionReader to be loaded with the scene.
Return Value
Returns trueTruetruetrue (True in Visual Basic) if the scene loaded successfully.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | fileName is nullNothingnullptra null reference (Nothing in Visual Basic). |