UE Code Search
Search Locations
C++ Source
- -
Project\Source\ - Main C++ modules - INLINECODE1 - Plugin C++ code
Lua Scripts (SilverPalace)
- -
Project\Content\Script\ - All Lua scripts - Common paths:
-
Global/GlobalSystem/ - Core systems
-
Module/MainModule_*/ - Main modules
-
Module/CommonSubModule/ - Common submodules
Asset References
- -
.uasset - Unreal assets (search in blueprints, materials) - INLINECODE7 - Map files
Common Searches
Find Function Definition
CODEBLOCK0
Find Class Usage
CODEBLOCK1
Find UI Widgets
CODEBLOCK2
Find Net Messages
CODEBLOCK3
SilverPalace Specific
Key Modules
- -
MainModule_BigWorld - Main game module - INLINECODE9 - Version/update module
- INLINECODE10 - Login module
- INLINECODE11 - Network management
- INLINECODE12 - Module switching
Key Lua Files
- -
g_ModuleManager.lua - Module management - INLINECODE14 - Network manager
- INLINECODE15 - UI management
- INLINECODE16 - Level/screen switching
Output Format
Provide:
- - File paths with matches
- Line numbers
- Code context (2-3 lines)
- File purpose summary
UE代码搜索
搜索位置
C++源码
- - Project\Source\ - 主要C++模块
- Project\Plugins\*\Source\ - 插件C++代码
Lua脚本 (SilverPalace)
- - Project\Content\Script\ - 所有Lua脚本
- 常用路径:
- Global/GlobalSystem/ - 核心系统
- Module/MainModule_*/ - 主要模块
- Module/CommonSubModule/ - 通用子模块
资源引用
- - .uasset - 虚幻资源(在蓝图、材质中搜索)
- .umap - 地图文件
常见搜索
查找函数定义
powershell
Select-String -Path *.cpp -Pattern FunctionName
Select-String -Path
.lua -Pattern function.FunctionName
查找类使用
powershell
Select-String -Path *.lua -Pattern ASomeClass
Select-String -Path *.cpp -Pattern SomeClass::
查找UI控件
powershell
Select-String -Path *.lua -Pattern c
UMG
Select-String -Path *.lua -Pattern UMG_
查找网络消息
powershell
Select-String -Path *.lua -Pattern SendPak
Select-String -Path *.lua -Pattern NetWork:Send
SilverPalace特有
关键模块
- - MainModuleBigWorld - 主游戏模块
- MainModuleVersionUpdate - 版本/更新模块
- MainModule_Login - 登录模块
- NetWorkManager - 网络管理
- ModuleManager - 模块切换
关键Lua文件
- - gModuleManager.lua - 模块管理
- gNetWorkManager.lua - 网络管理器
- g_UIManager.lua - UI管理
- MainLevelSwitcher.lua - 关卡/屏幕切换
输出格式
提供:
- - 匹配的文件路径
- 行号
- 代码上下文(2-3行)
- 文件用途摘要