#. UE5编译问题unable to patch action graph - unexpected executable in compile action
出现在新增了一个类,或项目给版本有小差异的引擎打开的时候
删除以上3个文件夹,重新生成
#. Git无法下载UE5源码
error: RPC failed;
curl 18 transfer closed with outstanding read data remaining
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
这是因为lfs大文件buffer导致,设置的buffer太小
查看缓存大小:git config --list | grep postbuffer
设置缓存大小:git config --global http.postBuffer 1966080000
建议使用Git桌面版下载,绿色软件无需安装,速度超快,简单易用
https://desktop.github.com/
#. 编译二进制版本的UE5
二进制编译工具https://github.com/ryanjon2040/Unreal-Binary-Builder
演示视频https://www.youtube.com/watch?v=fuvvBMrWX8s
#. UE5不同编译版本的区别和下载Git源码
Binary build : The compiled sources and files which will be packaged in the plug-in.
Source build : Selected sources and files which will be packaged without compilation.
我们使用UE自带Launcher下载的编辑器是二进制编译的,速度明显快很多,
如果我们使用的是源码编译的版本,可以进行自定义,但缺点是运行速度慢,占用内存高
二进制编译:将所有的源码和文件打包到插件中,以二进制形式读取
源码编译:选择的源码和文件并不是全部打包在一起,部分源码暴露给开发者编译
如果是开发阶段,建议使用二进制版本,老破电脑跑得飞起,网络游戏建议使用源码版本
方便测试调试UE内建RPC网络同步功能
UE5的源码是开源的私有库
,Epic有权限进行限制操作,其中
Epic的声明:
2020年7月,我们宣布打算要求对所有经过身份验证的Git操作使用基于Token的身份验证
(例如,Token、OAuth或GitHub App安装令牌)。
从2021年8月13日起,在GitHub.com上验证Git操作时,我们将不再接受帐户密码。
从2021年8月13日开始,我们在验证Git操作时将不再接受帐户密码,并将要求使用基于Token的身份验证。
例如个人Token(适用于开发人员)或OAuth或GitHub App安装令牌(适用于集成商),
用于GitHub.com上的所有经过身份验证的Git操作。您也可以在您喜欢的地方继续使用SSH密钥。
不能使用HTTPS进行clone,官方建议使用SSH或者Token
如果公司禁止SSH,则使用Token来访问
使用方式
git clone https://ghp_DemoYMHTu6msSJqM2HlwEpV9NiyPWZ3G6JJE@github.com/EpicGames/UnrealEngine.git
#. Montage切换分组插槽之后动画不播放
这个是UE事件刷新的bug,可以通过新建一个插槽然后删除掉,此时动画正常播放
这是UE的通常bug,开发中经常会遇到UE默认的不刷新数据,比如新增的C++字段、父类有变更等
我们都可以使用增-删的方式强制UE进行一次检索刷新
#. Rider for Unreal开启方法参数一直提示
#1. 开启的是输入方法的时候提示方法的参数,在传递具体参数的时候不会再提示
#2. 开启C++语言在写方法/宏的过程中提示参数
#. Visual Stuido编译的时候不要动电脑,要不得编译10个小时,4.27.2的UE源码
1> [4724/4727] UE4Editor-ChaosNiagara.dll
1> Creating library D:\UnrealEngine\Engine\Plugins\Experimental\ChaosNiagara\Intermediate\Build\Win64\UE4Editor\Development\ChaosNiagara\UE4Editor-ChaosNiagara.suppressed.lib and object D:\UnrealEngine\Engine\Plugins\Experimental\ChaosNiagara\Intermediate\Build\Win64\UE4Editor\Development\ChaosNiagara\UE4Editor-ChaosNiagara.suppressed.exp
1> [4725/4727] UE4Editor-FractureEditor.dll
1> Creating library D:\UnrealEngine\Engine\Plugins\Experimental\ChaosEditor\Intermediate\Build\Win64\UE4Editor\Development\FractureEditor\UE4Editor-FractureEditor.suppressed.lib and object D:\UnrealEngine\Engine\Plugins\Experimental\ChaosEditor\Intermediate\Build\Win64\UE4Editor\Development\FractureEditor\UE4Editor-FractureEditor.suppressed.exp
1> [4726/4727] UE4Editor-EditableMesh.dll
1> Creating library D:\UnrealEngine\Engine\Plugins\Runtime\EditableMesh\Intermediate\Build\Win64\UE4Editor\Development\EditableMesh\UE4Editor-EditableMesh.suppressed.lib and object D:\UnrealEngine\Engine\Plugins\Runtime\EditableMesh\Intermediate\Build\Win64\UE4Editor\Development\EditableMesh\UE4Editor-EditableMesh.suppressed.exp
1> [4727/4727] UE4Editor.target
1>Total time in Parallel executor: 35288.71 seconds
1>Total execution time: 35869.64 seconds
========== Build: 1 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
#. UE中内置的各种DEBUG绘制信息,使用宏定义或者蓝图集成库
#include "DrawDebugHelpers.h"
DrawDebugCapsule()
DrawDebugCanvasWireSphere()
DrawDirectionalArrow()
DrawConnectedArrow()
DrawFlatArrow()
DrawDebugDirectionalArrow()
UKismetSystemLibrary::DrawDebugArrow() // 画箭头
UKismetSystemLibrary::DrawDebugBox() // 画CubeBox
UKismetSystemLibrary::DrawDebugCamera() // 画Camera
UKismetSystemLibrary::DrawDebugCapsule() // 画胶囊体
UKismetSystemLibrary::DrawDebugCircle() // 画圆圈
UKismetSystemLibrary::DrawDebugCone() // 画锥形
UKismetSystemLibrary::DrawDebugCylinder() // 画圆柱体
UKismetSystemLibrary::DrawDebugFrustum() // 画视锥体
UKismetSystemLibrary::DrawDebugLine() // 画线条
UKismetSystemLibrary::DrawDebugPlane() // 画平面
UKismetSystemLibrary::DrawDebugPoint() // 画点
UKismetSystemLibrary::DrawDebugSphere() // 画球体
UKismetSystemLibrary::DrawDebugString() // 画字符串
UKismetSystemLibrary::DrawDebugCoordinateSystem() // 画坐标系统
UKismetSystemLibrary::DrawDebugConeInDegrees() // 画锥形的角度
UKismetSystemLibrary::DrawDebugFloatHistoryLocation() // 画历史位置
UKismetSystemLibrary::DrawDebugFloatHistoryTransform() // 画历史变换
UKismetSystemLibrary::DrawDebugArrow(<