A projet
is a reflection of the InstantTerra
status.
For example, saveto a file and reload later to continue your work.
// Create an instance of InstantTerra
InstantTerra instantTerra = new InstantTerra();
// Get the current project
Project project = instantTerra.GetProject();
Note
When you start an instance of InstantTerra, a new project is created automatically.
// Create a new project (default project)
project.NewProject();
The NewProject()
method replaces the current project
with a new default project.
Warning
If you have made changes to your project and are trying to open another project, these changes will be lost!
// Save the current project
project.SaveProject("my_project.terrain");
The SaveProject(filename)
method saves the current
project to a file.
Note
The saved file does not have a default extension;
You must add .terrain to the end of the file name.
Copyright © 2022 · All Rights Reserved · Wysilab