FMX.Objects3D.TModel3D.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function LoadFromFile(const AFileName: string): Boolean; virtual;

C++

virtual bool __fastcall LoadFromFile(const System::UnicodeString AFileName);

Properties

Type Visibility Source Unit Parent
function public
FMX.Objects3D.pas
FMX.Objects3D.hpp
FMX.Objects3D TModel3D

Description

Loads the model from a file.

LoadFromFile returns True if the model was successfully loaded, False otherwise.

To read 3D models from file, include the unit to the uses section (Delphi) or the header to the include list (C++) refering to the 3D model file extension that your application needs to read.

File Extension Unit/Header Required

.ase

FMX.ASE.Import

.dae

FMX.DAE.Import

.obj

FMX.OBJ.Import

See Also