添加ReactUI-未显示,待继续调试

This commit is contained in:
2024-12-15 00:59:23 +08:00
parent aec733de2f
commit 532e65e6fb
4 changed files with 403 additions and 2 deletions
+8 -2
View File
@@ -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();