添加ReactUI-未显示,待继续调试
This commit is contained in:
+8
-2
@@ -1,4 +1,10 @@
|
||||
import * as UE from 'ue'
|
||||
import {argv} from 'puerts'
|
||||
import {argv} from 'puerts';
|
||||
import {ReactUMG} from 'react-umg';
|
||||
import * as UI from './ui';
|
||||
|
||||
console.log("---------------------------------0---------------------")
|
||||
console.log('--------------------------0----------------------')
|
||||
//用React来写UI
|
||||
let world = (argv.getByName("GameInstance") as UE.GameInstance).GetWorld();
|
||||
ReactUMG.init(world);
|
||||
UI.Load();
|
||||
|
||||
Reference in New Issue
Block a user