getnamo / UnrealJs

Unreal.js plugin embedding v8.
Other
51 stars 6 forks source link
javascript ue4 ue5 unreal v8

Unreal.js Plugin - getnamo fork

Some opinionated changes to add certain features for live gameplay coding. Not all upstream functionality is guaranteed, but best effort is used when upgrading engine versions.

See upstream for wiki/instructions, API is largely the same: https://github.com/ncsoft/Unreal.js

Fork Changes

Async

Call a function on a background thread and optionally expose communication bridges auto-magically.

example.png

Format is Async.Lambda( capture params, function, result callback );

See https://github.com/getnamo/UnrealJs/blob/master/Content/Scripts/async.js for detailed API.

JavascriptInstance

A javascript component with more fine-grained control over features exposed to js. Can also re-use contexts and isolates.

exposure.png

See https://github.com/getnamo/UnrealJs/blob/master/Source/V8/Public/JavascriptInstanceComponent.h for detailed API.

UModule Package Manager

Should enable 'require' like include with code and asset support and simple external package management for modular development.

WIP: https://github.com/getnamo/UnrealJs/tree/feature-umodule