Files
MingSimulator/TypeScript/entry.ts
T

11 lines
312 B
TypeScript

import * as UE from 'ue'
import {argv} from 'puerts';
import {ReactUMG} from 'react-umg';
import * as UI from './ui';
console.log('--------------------------0----------------------')
//用React来写UI
let world = (argv.getByName("GameInstance") as UE.GameInstance).GetWorld();
ReactUMG.init(world);
UI.Load();