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"

Package non-asset file and load them at runtime

Hi, I am Ulyss and new to UE4.

I got a problems about packging non-asset file and load content in the pak file.

I use json to create my game content, so I need to load json at runtime.

I know I can just use "Add additional non-asset directory to copy" to let json can be copied to my packaged game directory. So that I can load json at runtime and it works fine.

But if I want to package json files into the pak file, what should I do to load them from pak file at runtime?

I see there are some functions about pakfile in the documentation, but I don't know how to use them to load pak using C++.

Another question is I am not very sure how package works.

If I use "Add additional non-asset directory to package" to add directory contains json files to .pak file, whether that directory will actually be added into pak file?

Hope that someone can help me solve these problems.

Product Version: UE 4.7
more ▼

asked Jun 03 '15 at 08:57 AM in Packaging & Deployment

avatar image

31 1 2 5

avatar image kbrownski Jul 14 '15 at 03:12 PM

bump; has anyone looked into this problem yet? I'm also curious about including JSON in a packaged build as I seem to be having similar issues in my project.

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

1 answer: sort voted first


I've found a few posts that may be of assistance to you:



Let me know if you have any further questions regarding this process.

Have a great day

more ▼

answered Jun 17 '16 at 05:14 PM

avatar image

Sean L ♦♦ STAFF
43.5k 485 152 442

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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