Some questions about Asset Management.
Hi,I'm new to UE4 and I have some experience on Unity development. So far, I have spend few weeks on reading official documents, and follow the tutorials.But after I read the Asset Management Section and do some experiments in Unreal Editor, I am really confused about this asset management thing. Here's the questions: 1. Does the Asset management affect the content cooking? After Read the document, I asume that when packing my project, Only Primary Asset and Secondary Asset related will be cooked. But After some test, all content still be cooked no matter it is used or no used in my project. So must I do something to active this feature? 2. In Unity, I have implement a system which can pack some assets(with it's references) I need into disk, and in runtime asynchronous load them and their references resource automatic. Now I want something same with this in Unreal Engine. So Asset management is the system I'm looking for? If it is, what I should do to implement the same resource management(pack and load). If it is not, can give me some cue to achieve my purpose.
btw, I'm using UE4.20.3 build from source code.
Thank for any help!!!
asked Oct 25 '18 at 08:40 AM in Using UE4
Yes, you are looking for asset manager and the asset registry.
In the project setting you need to give the asset manager directories to scan for your primary assets, here is where you also provide cooking rules for those assets. In order for all this to work you will need to create your own class of primary asset data and override the function get primary asset id.
You can asynchronous load and unload assets anytime you need by calling those same named functions in your blueprints or code.
Also if your looking for more customization you can create your own asset manager class and assign it in your project settings.
There is not a whole lot of imformation in the docs so if you read all of it on asset management and registery then the next best place to see how things are done is in epic sample projects like ARPG and shooter game, which both utilize these systems.
answered Oct 25 '18 at 12:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here