react界面跑通,调试不成功
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
// 使用 IntelliSense 了解相关属性。
|
||||||
|
// 悬停以查看现有属性的描述。
|
||||||
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Attach",
|
||||||
|
"port": 8080,
|
||||||
|
"sourceMaps": true,
|
||||||
|
"remoteRoot": "${workspaceFolder}/Content/Javascript",
|
||||||
|
"skipFiles": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
],
|
||||||
|
//"preLaunchTask": "tsc: build - tsconfig.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -3,4 +3,6 @@
|
|||||||
[/Script/Puerts.PuertsSetting]
|
[/Script/Puerts.PuertsSetting]
|
||||||
AutoModeEnable=True
|
AutoModeEnable=True
|
||||||
DebugEnable=True
|
DebugEnable=True
|
||||||
|
DebugPort=8080
|
||||||
|
WaitDebugger=True
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,12 @@
|
|||||||
void UMingGameInstance::Init()
|
void UMingGameInstance::Init()
|
||||||
{
|
{
|
||||||
Super::Init();
|
Super::Init();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void UMingGameInstance::OnStart()
|
||||||
|
{
|
||||||
|
//Super::OnStart();
|
||||||
M_JsEnvManager = MakeShared<FMCJsEnvManager>(FMCJsEnvManager());
|
M_JsEnvManager = MakeShared<FMCJsEnvManager>(FMCJsEnvManager());
|
||||||
M_JsEnvManager->Init(this);
|
M_JsEnvManager->Init(this);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ import {ReactUMG} from 'react-umg';
|
|||||||
import * as UI from './ui';
|
import * as UI from './ui';
|
||||||
|
|
||||||
console.log('--------------------------0----------------------')
|
console.log('--------------------------0----------------------')
|
||||||
|
debugger
|
||||||
//用React来写UI
|
//用React来写UI
|
||||||
let world = (argv.getByName("GameInstance") as UE.GameInstance).GetWorld();
|
let world = (argv.getByName("GameInstance") as UE.GameInstance).GetWorld();
|
||||||
ReactUMG.init(world);
|
ReactUMG.init(world);
|
||||||
UI.Load();
|
UI.Load();
|
||||||
|
console.log('--------------------------1----------------------')
|
||||||
+4
-3
@@ -12,8 +12,9 @@
|
|||||||
},
|
},
|
||||||
"author": "MiceCola",
|
"author": "MiceCola",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies":{
|
"dependencies": {
|
||||||
"@types/react":"^15.6.6",
|
"@types/react": "^15.6.6",
|
||||||
"@types/react-reconciler":"^0.18.0"
|
"@types/react-reconciler": "^0.18.0",
|
||||||
|
"typescript": "^5.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user