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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Load asset at runtime from File System

Hi to all, I'm a beginner with Unreal Development:

I need to load an asset at "runtime" (like: 3d model file and texture) from "File System", place it under local content folder (for example: "/Game/") and use it after.

I've tried to execute the following code and it gives me an exception if I launch the game with its process:

 FAssetToolsModule& AssetToolsModule = FModuleManager::LoadModuleChecked<FAssetToolsModule> ("AssetTools");
 TArray<UObject*> ImportedObjects = AssetToolsModule.Get().ImportAssets("/Game/"); // CRASH HERE
 // Rest of code

Please could you give me a sample code or an alternative way to do it!


Product Version: Not Selected
more ▼

asked Dec 02 '14 at 10:18 AM in C++ Programming

avatar image

1 1 1 1

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

1 answer: sort voted first


For legal reasons you are not allowed to load assets at runtime and save them to your project directory.

People need to have the Editor and use the editor, and none of this would work in a packaged game for sure :)

The original design must be re-thought :)


more ▼

answered Dec 02 '14 at 08:50 PM

avatar image

10.6k 446 345 1087

avatar image Two-faced Dec 17 '15 at 09:21 AM

Ok, Rama, and what about moddable function? Does it far from loading assets to the game directly?

avatar image Katianie Aug 15 '18 at 07:24 PM

I think the issue is that if you were allowed to load assets at run time with ue4, the user could use copy-written material and it would get Epic in trouble. It also opens the possibility of a "SQL Injection" type of attack on the game.

avatar image Sam54123 Nov 08 '18 at 05:37 AM

I get that this is a little late, but how does people loading copywritten material into games get Epic in trouble? People can already do that in the editor.

(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