unreal Tips
2024年4月30日
修改DDC缓存位置
会把项目缓存,存在当前项目下;例如把这个项目发给别人的时候就不用人家重新-编译着色器
搜索这个
InstalledDerivedDataBackendGraph
或者直接搜这个也行
%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache
改为
%GAMEDIR%DerivedDataCache
或者使用下方bat 执行路径替换内容
Modify_DDC_loc_EN.bat
@echo off
chcp 65001
echo ===================================================================
echo = =
echo = Replace the DDC local cache path to the project root directory =
echo = =
echo ===================================================================
setlocal enabledelayedexpansion
REM Prompts the user for a path
echo This script will put "ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache"
echo replace "GAMEDIR%DerivedDataCache"
echo Please enter the path where the BaseEngine.ini engine is located below:
echo Hint: ".. \UE 5.4\Engine\Config"
echo ===================================================================
REM Gets the path to the input
set /p userPath=
REM Replace the path entered by the user into the 'path_to_file' variable
set "path_to_file=%userPath%\BaseEngine.ini"
set "search_string=%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache"
set "replace_string=%GAMEDIR%DerivedDataCache"
REM Read the contents of the file line by line and replace the specified string before writing back to the original file
for /f "delims=" %%a in ('type "%path_to_file%" ^& break ^> "%path_to_file%"') do (
set "line=%%a"
>>"%path_to_file%" echo(!line:%search_string%=%replace_string%!
)
REM Prompt to exit after 5 seconds
echo Done Exit in 5 seconds
ping -n 5 127.0.0.1 > nul
exit
Modify_DDC_loc_ZH.bat
@echo off
chcp 65001
echo ==========================================
echo = 替换DDC本地缓存路径至项目根目录下 =
echo ==========================================
setlocal enabledelayedexpansion
REM 提示用户输入路径
echo 将会找到 "ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache"
echo 替换为 "GAMEDIR%DerivedDataCache"
echo 请在下方输入引擎BaseEngine.ini所在的路径:
echo 提示:"..\UE_5.4\Engine\Config"
echo ==========================================
REM 获取输入的路径
set /p userPath=
REM 将用户输入的路径替换到 path_to_file 变量中
set "path_to_file=%userPath%\BaseEngine.ini"
set "search_string=%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache"
set "replace_string=%GAMEDIR%DerivedDataCache"
REM 逐行读取文件内容并替换指定字符串后写回到原文件中
for /f "delims=" %%a in ('type "%path_to_file%" ^& break ^> "%path_to_file%"') do (
set "line=%%a"
>>"%path_to_file%" echo(!line:%search_string%=%replace_string%!
)
REM 提示完成
echo "完成,五秒后退出."
ping -n 5 127.0.0.1 > nul
exit
快捷设置
吸附模型
按End
键会吸附到下方地面
显示模型布线
UE5好像已默认使用O快捷键