Add SubAssetFolder to model import option to redirect auto-imported materials and textures location

This commit is contained in:
Wojtek Figat
2023-10-17 09:59:21 +02:00
parent cebae5c4e1
commit 90427da42f
3 changed files with 10 additions and 1 deletions

View File

@@ -370,6 +370,12 @@ public:
API_FIELD(Attributes="EditorOrder(2010), EditorDisplay(\"Splitting\")")
int32 ObjectIndex = -1;
public: // Other
// If specified, will be used as sub-directory name for automatically imported sub assets such as textures and materials. Set to whitespace (single space) to import to the same directory.
API_FIELD(Attributes="EditorOrder(3030), EditorDisplay(\"Other\")")
String SubAssetFolder = TEXT("");
// Runtime data for objects splitting during import (used internally)
void* SplitContext = nullptr;
Function<bool(Options& splitOptions, const String& objectName)> OnSplitImport;