-
Notifications
You must be signed in to change notification settings - Fork 351
Running the examples
Nako Sung edited this page Aug 11, 2016
·
6 revisions
- Make sure you have
git-lfs
installed. - Clone this repository and download external dependencies.
git clone https://github.com/ncsoft/Unreal.js
cd Unreal.js
git submodule update --init
cd Examples/Plugins/UnrealJS
install-v8-libs.bat (for windows)
./install-v8-libs.sh (for other platforms)
- Open
JavascriptPlayground.uproject
and click to rebuild.
- Clone or Download the Examples directory of the Unreal.js repository
- Create the
Examples\Plugins\
directory - Copy the already built plugin content to the
Examples\Plugins\UnrealJS
directory - Open the
Examples\JavascriptPlayground.uproject
file in the UE Editor - Load one of the example levels from the editor's Content Browser
- Run the level in the editor to see Unreal.js in action
- If something goes wrong while running the level you can probably get useful information in the Javascript Console (
Window > Developer Tools > Javascript Console
)
- For the
helloSpringy.js
example you will need to install some external Node.js dependency packages - This is done by using the npm command line utility
- Open the OS command prompt / shell and
cd
to theExamples\Content\Scripts\
directory - Install the required dependencies by using the
npm install
command - The
node_modules
directory with the downloaded dependencies should have been created - You can then try out and run the helloSpringy.js example