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/Tools/SerializeContextTools
Mike Balfour 96905a26d7
Add support for AP-compliant relative paths (#998)
The method "PrefabLoader::GetRelativePathToProject" has been changed to "PrefabLoader::GenerateRelativePath", and reworked to get a correct relative path.  GetFullPath has also been modified to get correct relative paths too.  This requires an Asset Processor connection - if one isn't available (like during unit tests), the methods have fallback logic to produce project-relative paths.

With this change, SliceConverter can't use SaveTemplate() to save the file any more, because GetFullPath now expects to find an existing path, which doesn't work for not-yet-created files.  Instead, it now has to use the same technique as the Editor and call SaveTemplateToString then save the string out as a file.
5 years ago
..
Platform Add newlines to the end of all files 5 years ago
Application.cpp Added initial support for nested slices to slice-prefab converter (#881) 5 years ago
Application.h Added initial support for nested slices to slice-prefab converter (#881) 5 years ago
CMakeLists.txt Change SerializeContextTools into a ToolsApplication so that it can correctly read in slice data: 5 years ago
Converter.cpp First version of the slice-to-prefab converter 5 years ago
Converter.h First version of the slice-to-prefab converter 5 years ago
Dumper.cpp First version of the slice-to-prefab converter 5 years ago
Dumper.h Add newlines to the end of all files 5 years ago
SliceConverter.cpp Add support for AP-compliant relative paths (#998) 5 years ago
SliceConverter.h Add support for AP-compliant relative paths (#998) 5 years ago
Utilities.cpp First version of the slice-to-prefab converter 5 years ago
Utilities.h First version of the slice-to-prefab converter 5 years ago
main.cpp First version of the slice-to-prefab converter 5 years ago
serializecontexttools_files.cmake First version of the slice-to-prefab converter 5 years ago