Skip to content

Cooking

Nako Sung edited this page Nov 27, 2015 · 8 revisions

Current version of UnrealEngine doesn't handle plugins with Content correctly. For a workaround you may copy Plugins/UnrealJS/Content into cooked target manually.

While cooking a shipping version, UnrealEngine strips all assets which are not referenced by root assets. Cooker doesn't know anything about *.js, so Resource.Loaded assets will not be included in the final shipping version. As a remedy for this problem, JavascriptComponent has Assets and ClassAssets which are key-value store containing FStringAssetReference and TSubclassOf<UObject>. Those assets can be accessed via Root.ResolveAsset(asset-name,true/*true for load*/) and Root.ResolveClass(asset-name).

Before

class MyChildActor extends Blueprint.Load('/SomeNice').GeneratedClass {}

After

class MyChildActor extends Root.ResolveClass('blueprint') {}
Clone this wiki locally