Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::IUuidUtil Struct Referenceabstract

Public Member Functions

 AZ_RTTI (IUuidUtil, "{C3281F96-430A-49C2-95EF-66505C34CD2E}")
 
virtual AZ::Outcome< void, AZStd::string > CreateSourceUuid (AZ::IO::PathView absoluteFilePath, AZ::Uuid uuid)=0
 
virtual AZ::Outcome< AZ::Uuid, AZStd::string > CreateSourceUuid (AZ::IO::PathView absoluteFilePath)=0
 

Member Function Documentation

◆ CreateSourceUuid() [1/2]

virtual AZ::Outcome< AZ::Uuid, AZStd::string > AzToolsFramework::IUuidUtil::CreateSourceUuid ( AZ::IO::PathView  absoluteFilePath)
pure virtual

Creates a metadata file with the assigned UUID. This will fail if a metadata file with a UUID already exists for this asset.

Parameters
absoluteFilePathAbsolute path of the source asset (or metadata file)
Returns
The generated UUID if successful, a null UUID otherwise.

◆ CreateSourceUuid() [2/2]

virtual AZ::Outcome< void, AZStd::string > AzToolsFramework::IUuidUtil::CreateSourceUuid ( AZ::IO::PathView  absoluteFilePath,
AZ::Uuid  uuid 
)
pure virtual

Creates a metadata file with a randomly generated UUID. This will fail if a metadata file with a UUID already exists for this asset.

Parameters
absoluteFilePathAbsolute path of the source asset (or metadata file)
uuidUuid to assign

The documentation for this struct was generated from the following file: