Scene:Write Scene File
- Updated2026-02-04
- 1 minute(s) read
Writes a new 3D scene file. The filename must end with a .lvsg extension.
If the scene includes textures, this method writes the textures as .png files to the same directory as the .lvsg file. The filenames for the textures consist of an enumerated integer followed by the name of the .lvsg file.
Parameters
| Name | Data type | Required | Description |
|---|---|---|---|
| Scene | ![]() |
Yes | Reference to a 3D scene. |
| File | ![]() |
Yes | Specifies the filename for the 3D scene. The filename must end with a .lvsg extension. |
Remarks
The following table lists the characteristics of this method.
| Short Name | Scene.Write Scene File |
| Data type | No return value |
| Available in Run-Time Engine | Yes |
| Available in Real-Time Operating System | Yes |
| Remote access allowed | Yes |

