FMX.Import.TModelImportServices.LoadFromFile
Delphi
class function LoadFromFile(const AFileName: string; out AMesh: TMeshDynArray; const AOwner: TComponent): boolean;
C++
__classmethod bool __fastcall LoadFromFile(const System::UnicodeString AFileName, /* out */ Fmx::Objects3d::TMeshDynArray &AMesh, System::Classes::TComponent* const AOwner);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | published | FMX.Import.pas FMX.Import.hpp |
FMX.Import | TModelImportServices |
Description
Loads the model from the specified file.
Determines the appropriate model importer based on the extension of AFile
and calls the LoadFromFile method of that importer.
LoadFromFile returns True if the loading was successful, and False otherwise.