Branch onejs-v2
contains the latest version, updated for OneJS V2.
This sample code is meant for OneJS users. Video Demo: https://vimeo.com/713229997
- Extract this repo to
{ProjectDir}/OneJS/ForniteSample
- Open
{ProjectDir}/OneJS
with VSCode and run thetsc: watch
task (Ctrl + Shift + B) - In Unity, drag a ScriptEngine prefab onto the scene.
- Create an empty GameObject in scene and name it
charman
. Then, drag the includedCharacterManager.cs
onto it. - Add
CharacterManager
to the Objects list under ScriptEngine's INTEROP; name it tocharman
. (Read the info box above the Objects list for tips on how to pick specific Objects) - Set Live Reload's entry script to
FortniteSample/index.js
. - Hit Play and you should be all set