x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Load a subset of primary assets using the AssetManager

Hello,

I'm developing a rogue-like game with levels made of random pre-defined rooms.

I'm using the asset manager to handle the levels and rooms definitions.

At the moment, all levels have the same PrimaryAssetType, and all rooms theirs.

I've placed those data assets in separate folders and configured the settings as needed. As a result, the asset manager successfully loads those assets.

Currently, I have 2 levels. At runtime, when I call GetPrimaryAssetIdList with the Level primary asset type, I successfully get 2 assets. And when I do the same for the rooms, I get all the rooms (from both levels)

So right now, when I want to load only the level 2 at runtime, I still need to load everything and filter the loaded data assets to keep only those related to the level 2.

Is there a way to only get the primary asset id list of a given level without loading everything?

I thought of creating as many PrimaryAssetType as I have levels (LevelDefinition_1, LevelDefinition_2, ... and RoomDefinition_1, RoomDefinition_2, ...) but this is not very convenient.

Maybe I can use the asset bundles for this purpose, but I must admit I can't get my head around that structure yet.

Any idea?

Thanks!

Product Version: UE 4.20
Tags:
more ▼

asked Aug 22 '18 at 10:25 AM in Using UE4

avatar image

Zoubi
172 22 30 35

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question