You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework/AzFramework/AzFramework/Asset
Mike Balfour 6c17c7bfb3
Add new API to convert absolute source paths to relative paths. (#930)
There are already APIs for getting a relative product path from an absolute source path, or getting a relative source path for an *existing* source file, but there were no APIs for getting a relative source path for a *new* source file.  Prefabs will need this ability to be able to correctly generate a relative source path inside the prefab file before the file has been saved.
The logic for relative source paths is a little bit tricky because the paths are relative to the watch folders, and the watch folders can be nested, with different priorities to explain which should take precedence.  The input paths can also include specifiers like "." and "..", which need to be reconciled before creating the final correct relative path.  The included unit tests test all of the tricky edge cases that I was able to identify.
5 years ago
..
Benchmark Initial commit 5 years ago
AssetBundleManifest.cpp Initial commit 5 years ago
AssetBundleManifest.h Integrating github/staging through commit 5f214be 5 years ago
AssetCatalog.cpp LYN-2537 engine assets (#254) 5 years ago
AssetCatalog.h Initial commit 5 years ago
AssetCatalogBus.h Initial commit 5 years ago
AssetCatalogComponent.cpp Initial commit 5 years ago
AssetCatalogComponent.h Initial commit 5 years ago
AssetProcessorMessages.cpp Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
AssetProcessorMessages.h Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
AssetRegistry.cpp Initial commit 5 years ago
AssetRegistry.h Initial commit 5 years ago
AssetSeedList.cpp Initial commit 5 years ago
AssetSeedList.h Initial commit 5 years ago
AssetSystemBus.h Integrating latest from github/staging 5 years ago
AssetSystemComponent.cpp Add new API to convert absolute source paths to relative paths. (#930) 5 years ago
AssetSystemComponent.h Integrating latest from github/staging 5 years ago
AssetSystemComponentHelper.cpp LYN-2723: Fixes issues with bad project or engine paths (#369) 5 years ago
AssetSystemTypes.h Initial commit 5 years ago
CfgFileAsset.h Initial commit 5 years ago
CustomAssetTypeComponent.cpp Initial commit 5 years ago
CustomAssetTypeComponent.h Initial commit 5 years ago
FileTagAsset.cpp Initial commit 5 years ago
FileTagAsset.h Initial commit 5 years ago
GenericAssetHandler.h Initial commit 5 years ago
NetworkAssetNotification_private.h Initial commit 5 years ago
SimpleAsset.cpp Initial commit 5 years ago
SimpleAsset.h Initial commit 5 years ago
XmlSchemaAsset.cpp Initial commit 5 years ago
XmlSchemaAsset.h Initial commit 5 years ago