A project is a reflection of the Instant Terra status.
Note
When you start an instance of Instant Terra, a new project is created automatically.
InstantTerraApi::InstantTerra it = InstantTerraApi::CreateInstantTerrain();
// Create a new project (default project)
InstantTerraApi::Project project = it.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!
InstantTerraApi::InstantTerra it = InstantTerraApi::CreateInstantTerrain();
InstantTerraApi::Project project = it.NewProject();
// Save the current project (default project)
project.Save(L"my_project.terrain");
The Save(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.
// Open a project
InstantTerraApi::Project project = it.OpenProject(L"my_project.terrain");
The OpenProject(filename)
method opens an
InstantTerra project from the specified file.
Warning
If you have made changes to your project and are trying to open another project, these changes will be lost!
// Close the current project
project.Close()
The Close()
method closes the current
project.
Warning
If you have made changes to your project and are trying to open another project, these changes will be lost!
Copyright © 2022 · All Rights Reserved · Wysilab