Class: Model
Lua
C++
Edit

Model::Save

This method saves the model to a file, in glTF or Wavefront OBJ format.

Syntax

Parameter Description
path file path to save
flags optional save flags

Returns

Returns true if the model is successfully saved, otherwise false is returned.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
  //Create model
  auto model = CreateBox(NULL);

  //Save to file
  if (model->Save("box.obj"))
  {
    //Show file
    OpenDir("box.obj");
  }
}
Copyright © 2024 Ultra Software.
All rights reserved.