I am currently making an attempt to reduce the overall number of files that we have to submit to our versioning software.
currently our world generation system outputs a lot of staticmeshes. Is there any way of amalgamating multiple static meshes into 1 uasset file? (whilst maintaining their seperate static mesh references)
I initially tried parenting multiple UStaticMesh objects from a single UPackage, but that did not produce the desired result (or I could potetnially have been doing it wrong).
Is the relationship a fixed 1:1 between UObject/UPackage and .Uasset files or is there a way to put multiple unreal objects into a single package/.uasset file?
(or would it need to be some kind of custom derived UObject)
It is generally not recommended to groups multiple assets under the same package. It used to be the case before UE4 and still technically possible but lots of the editor was changed to expect a 1:1 UObject\UPackage relation. The truth is that packages are still contain multiple UObjects but only 1 is tagged as RF_Public. This flags is required for an asset to be externally referenced (similar to a DLL export). The Content Browser is one of the tool that doesn’t properly handle multiple public objects in a package.
You can inspect the content of a package with the PkgInfo commandlet: