The Fortnite UI Sample has been updated for OneJS V2 and is available as a npm package. Refer to the video guide above for a quick Getting Started.
The Gist
npm install fortnite-sample
- Setup
SampleCharacter
in scene - Test the
<FortniteSample />
preact comp like below:
TSX
import { h, render } from "preact"
import { FortniteSample } from "fortnite-sample"
const App = () => {
return <FortniteSample />
}
render(<App />, document.body)