ue 蓝图测试搭建笔记

ue 蓝图测试搭建笔记

一、新建 BP_MyGameInstance

  1. 在内容浏览器(Content Browser)里右键 → Blueprint Class

  2. 在弹出的窗口里选择All Classes

  3. 搜索GameInstance

  4. 选择GameInstance→ 点击选择/创建

  5. UE 会让你命名 → 输入:

    P_MyGameInstance
  6. 双击打开,就进入蓝图编辑界面

📌 现在你有了一个自定义 GameInstance 蓝图


二、在 BP_MyGameInstance 里创建 WSClient 变量

  1. 在左侧Variables(变量)→ 点击+

  2. 命名:WSClient

  3. 类型选择:

    • 点击Variable Type → Object

    • 然后选择WebSo