自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(980)
  • 资源 (8)
  • 收藏
  • 关注

原创 UE4 error LNK2019: 无法解析的外部符号

问题:原因:是因为UE4对内部代码保护,没有对该类或者结构体导出,即没有在类前加XXX_API,此处缺少ENGINE_API。修改:

2020-12-29 11:19:03 3309

原创 【UE4蓝图】【屏幕坐标转世界坐标】

2020-09-28 20:43:25 2831 1

原创 SVN【修复“unable to create pristine install stream”】

问题如上图修复方法:在.svn目录下创建个tmp的目录即可,没有.svn的隐藏目录显示出来。

2020-09-16 19:47:06 507

原创 UE4【C++】【EditorCondition的使用】

1.枚举类型UPROPERTY(BlueprintReadOnly, EditAnywhere, Category = "WidgetConfig")EGUIDE_TYPE GuideType = EGUIDE_TYPE::OnlyOnce;UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "WidgetConfig", meta = (EditCondition = "GuideType == EGUIDE_TYPE::MultiTime

2020-09-14 15:46:05 1288

原创 玻璃雨滴效果

https://gumroad.com/debugart?recommended_by=library

2020-09-09 14:17:14 183

原创 UE4【C++/蓝图】【获取UE4当前时间毫秒】

FDateTime::Now().GetTimeOfDay().GetTotalMilliseconds()

2020-08-15 18:11:13 7306

原创 UE4 Sound常见类

UE4 Audio系统分析项目项目项目SoundWave常用属性:1.1. Format1.2. PlaybackSoundCueSoundClassSoundMixSoundAttenuationSoundConcurrencySoundOcculusionReverbEffectsAudioVolume 计划任务 完成任务创建一个表格一个简单的表格是这么创建的:项目Value电脑$1

2020-08-07 20:12:14 1484

原创 UE4【蓝图】【UE4 Texture Index】

2020-07-28 23:34:30 313

原创 UE4【C++】【实现2维和3维数组】

template <typename T>class Array3D{public: Array3D(unsigned int _length, unsigned int _width, unsigned int _height, const T& defaultValue) : length(_length) , width(_width) , height(_height) { for (unsigned int x = 0; x < length;.

2020-07-27 15:28:56 2158

原创 UE4【C++】【UE4实现形参为Function的模板函数】

//A.cpptemplate<typename Functor>void ForEachPart(Functor functor){ for (unsigned int z = 0, zSize = Parts.getHeight(); z < zSize; ++z) { for (unsigned int y = 0, ySize = Parts.getWidth(); y < ySize; ++y) { for (unsigned int x = 0,.

2020-07-27 15:26:16 729

原创 UE4【C++】【屏幕空间转世界空间】

AActor* APlayerController::GetActorUnderPoint(const FVector2D& point) const{ FVector location, direction; DeprojectScreenPositionToWorld(point.X, point.Y, location, direction); FCollisionQueryParams TraceParams(FName(TEXT("")), true, this); Trac.

2020-07-27 14:52:19 954

原创 UE4【蓝图】【修改蓝图属性导致UE4崩溃】

问题描述:项目一开始使用UE4.23,后来升级到UE4.24,出现修改蓝图组件属性,甚至UE4原生组件,比如灯光的Light的Channel都会导致UE4崩溃。解决办法:1.使用Reload,蓝图修改第一次不会崩溃,第二次依然会崩溃。2.设置Projecting里的EditorScene为空,重新打开UE4 Editor,目的是保证我们要修改的蓝图,没有场景对象实例依赖或引用目标蓝图,修改蓝图属性正常。3.比对UE4.25源码,发现是UE4的bug,并且已经在4.25修复,下面是diff文件

2020-07-16 10:55:01 2555

原创 UE4【C++】【解决VS在Debug时无法启动调试的问题】

问题如下图错误的配置,如下图正确的配置,如下图其实就是工作目录那一项,需要正确配置,如果为空或者配置不正确,就会出现图1的问题。

2020-07-13 22:41:48 2702 2

原创 UE4【蓝图材质】【如何实现灯光的光斑效果】

2020-07-13 22:37:49 1890 1

原创 UE4【材质蓝图】【UE4快速实现序列帧动画】

其实材质特别简单,如下图

2020-07-13 22:36:04 4052

原创 OpenGL环境配置大礼包

glut安装:https://jingyan.baidu.com/article/fa4125ac14e22728ad70925e.htmlglew安装:https://blog.csdn.net/u010281174/article/details/45848003glew下载地址:http://glew.sourceforge.net/glut下载地址:http://www.opengl.org/resources/libraries/glut/glutdlls37beta.ziphtt

2020-07-09 02:11:03 115

原创 UE4【C++】【战斗-扇形范围判断】

bool UFormulaFunctionLibrary::IsInsideSector(const FVector& Target, const FVector& TargetForward, const FVector& SectorCenter, const float SectorRadius){ FVector ActualPoint = Target - SectorCenter; FVector RightForward = TargetForward.Rot.

2020-07-02 20:41:04 1361

原创 UE4【C++】【C++播放蒙太奇】

UAnimMontage* ReLoadMontage = UUtilFunctionLibrary::GetAnimMontageFromAssetID(MuzzleConfig.ReLoadMontage); UAnimInstance* PistolAnim = PistolMeshRef->GetAnimInstance(); if (IsValid(PistolAnim)) { FAlphaBlend AlphaBlend; AlphaBlend.SetBlendTime(0.

2020-06-30 15:06:43 1873

原创 UE4【C++】【播放声音、特效、伤害、子弹、蒙太奇动作】

if (IsAmmoEmpty && !IsReloading) { //Play Empty Sound USoundBase* EmptyAmmoSound = MuzzleConfig.EmptyAmmoSound.Get(); if (!IsValid(EmptyAmmoSound)) { EmptyAmmoSound = MuzzleConfig.EmptyAmmoSound.LoadSynchronous(); } UGameplayStatic.

2020-06-30 15:04:23 1854

原创 UE4【C++】【路径加载Class和Spawn】

UClass* ProjectileClass = UFLUtils::LoadClassEx<UClass>("/Game/ThirdContent/MPS_V2/Game/Blueprints/Projectile_BP.Projectile_BP_C");if (IsValid(ProjectileClass)){ FTransform BoneTrans = BoneSocket->GetSocketTransform(PistolMeshRef); FQuat Q.

2020-06-30 15:02:16 786 2

原创 【GPU架构部分概念】

CUDA:Compute Unified Device Architecture。通用并行计算架构,是一种运算平台。它包含CUDA指令集架构以及GPU内部的并行计算引擎。你只要使用一种类似于C语言的CUDA C语言,就可以开发CUDA程序,从而可以更加方便的利用GPU强大的计算能力,而不是像以前那样先将计算任务包装成图形渲染任务,再交由GPU处理。注意,并不是所有GPU都支持CUDA。Thread:并行运算的基本单位(轻量级的线程)Block:由相互合作的一组线程组成。一个block中的thread可

2020-06-22 10:27:57 1071

原创 UE4【C++】【UEBuildTarget源码分析之PreBuild和PostBuild】

//1.UEBuildTarget.cs//初始化UEBuildTargetprivate UEBuildTarget(TargetDescriptor InDescriptor, ReadOnlyTargetRules InRules, RulesAssembly InRulesAssembly)//2.生成PreBuild和PostBuild对应的.bat文件WriteCustomBuildStepScriptsprivate FileReference[] WriteCustomBuild.

2020-06-16 22:56:33 704

原创 Bat使用正则表达式删除指定目录指定文件

setlocalset CurPath=%~dp0set CurBinaries=%CurPath%Binariesset PluginsPath=%CurPath%Pluginsecho CurBinariesecho PluginsPathecho off & color 0Aset "regexp_dll=-[0-9][0-9][0-9][0-9].dll"set "regexp_pdb=-[0-9][0-9][0-9][0-9].pdb"for /R %Plugin.

2020-06-13 16:30:12 2545

原创 PHP和Httpd的使用

1.相关环境1.1 httpd:http://httpd.apache.org/docs/current/platform/windows.html#down1.2 php:https://windows.php.net/download/ 一般选择VC15 x64 Thread Safe1.3 Composer:https://getcomposer.org/download/1.4 PhpStorm:https://www.jetbrains.com/phpstorm/downlo.

2020-06-08 14:55:31 398

原创 UE4【工具】【Quixel安装】

网址:https://quixel.com/教程地址:https://help.quixel.com/hc/en-us/articles/360002127457-Installing-the-Megascans-Plugin-for-UE4-on-Windows使用UE4账号登录Quixel菜单栏找到PRODUCTS->BRIDGE 下载安装完成后打开Bridge随便找一个材质,下载如果是第一次下载,需要设置下载路径Megascans Library选择DOWNLOADSETTING

2020-06-04 10:23:43 3314

原创 UE4【使用PixelStreaming功能】

1.检查硬件和环境 检查操作系统和硬件-像素流送插件只能在运行Windows操作系统的电脑上编码视频,对电脑的GPU硬件还有一定要求。欲知详情,请查阅像素流送参考。 安装node.js -如果电脑上尚未安装node.js,则需要下载并安装。 打开网络端口-必须打开本地网络上的以下端口进行通信:80、888。如需修改默认端口,请查阅像素流送参考。 停止其他web服务器 -如果电脑正在运行其他Web服务器,则将其停止。 IP地址-需要知悉电脑的IP...

2020-05-25 21:19:15 3979

原创 UE4【打包】【Shipping输出log】

public class GameTarget : TargetRules{ public GameTarget(TargetInfo Target) : base(Target) { Type = TargetType.Game; // enable logs and debugging for Shipping builds if (Configuration == UnrealTargetConfiguration.Shipping) { BuildEnvironmen.

2020-05-20 11:35:18 4236

原创 Batch 实现文件检索,拼接

echo off & color 0Aset "SEARCHTEXT=%ProjectX%\Content"set "REPLACETEXT=/Game"set "LeftLine=\"set "RightLine=/"set Content=%ProjectX%\Contentecho %Content%set DIR="%Content%"echo DIR=%DIR...

2020-04-28 22:07:27 273

原创 Bat For Loop拼接字符串和int

@ECHO OFF &SETLOCALSET /a count=5for /l %%a in (1,1,%count%) do call set "Myvar=%%Myvar%%, %%a"ECHO %Myvar:~2%set Maps=" "for /f %%f in (Fuck.ini) do ( if "%s%" equ " " ( call set Map...

2020-04-28 20:08:42 3337

原创 Batch 替换、连接字符串

echo offset ProjectPath=%1%set UAT_Path=%2%set OutputPath=%3%set Platform=%4%set Build=%5%set ProjectX=D:\UE_Project\XGame\ProjectXecho off & color 0Asetlocal EnableExtensions EnableDel...

2020-04-28 17:46:47 657

原创 UE4【C++】【C++控制相机和身体转向固定方向】

FRotator target_rotator = FRotator(0, CameraLimit.Target_Yaw, 0);FirstPersonCamera->SetWorldRotation(target_rotator);FRotator CurrentRotaiton = FirstPersonCamera->GetComponentRotation();Firs...

2020-04-02 00:00:19 814

原创 UE4-【问题集合】

LogWindows: Error: Assertion failed: !bCleanedUpWorld [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/World.cpp] [Line: 4092]场景流中的子场景重复包含

2020-03-28 18:31:51 2782 4

原创 UE4-【C++】【打包NonUASSET文件并加载】

使用自定义IO操作,将目标文件(txt)放在Content1.设置附加打包目录void UMyBlueprintFunctionLibrary::ExecuteTestCode(const FString &InPaksDir){ UMyBlueprintFunctionLibrary::ShowGameDir(); FString read_str; b...

2020-01-14 23:44:35 521

原创 UE4-【C++】【UE4异步加载】

FString sound_path = data.Sound;FSoftObjectPath path;path.SetPath(sound_path);TSoftObjectPtr<USoundCue> sound;if (path.IsValid()) sound = Cast<USoundCue>(path.ResolveObject()); T...

2019-11-29 11:41:44 827

原创 UE4-【蓝图】【UE4 SpineMesh使用】

1.添加SplineComponent2.蓝图构造函数动态添加SplineMeshComponent

2019-11-21 12:59:32 1344

原创 BWG连接不上问题大全

IP被封和VPS宕机概率还是比较低的,只要你老实本分。反而是端口被封的概率比较大,本文。1.IP被封,测试地址https://kiwivm.64clouds.com/main-exec.php?mode=blacklistcheck2.端口被封,解决教程https://www.banwagong.net/203.html3.VPS宕机,进入https://kiwivm.64clouds...

2019-11-21 01:49:12 761

原创 UE4-【C++】【UE4接入CISQLite3】

1.下载插件CISQLite32.创建UE4工程,添加Plugins目录和CISQLite3,将1下载到的插件放入Plugins/CISQLite33.工程添加uplugin.uproject添加"Plugins": [ { "Name": "CISQLite3", "Enabled": true }]UE工程目录.Build....

2019-10-29 15:34:46 431

原创 UE4-【C++】【UE4添加第三方Plugin error C4668警告解决】

Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winioctl.h(8921): error C4668: '_WIN32_WINNT_WIN10_TH2' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' 1>C:\Program ...

2019-10-29 14:45:20 3723 1

原创 UE4-【C++/蓝图】【UE4 C++ SpawnActor创建蓝图对象】

方式一:UPROPERTY(EditAnywhere)TSubclassOf<class APickupAndRotateActor> ObjectToSpawn;FSCPSceneItemsDataStruct scene_item = SCPGAMEINSTANCE(this)->JsonStaticDataManager->SCPSceneItems-&g...

2019-10-29 11:03:28 3928 1

原创 UE4-【C++/蓝图】【UE4CDO清理流程】

举个例子,如果第一次代码设置Actor的组件A为RootComponent,然后生成了蓝图,后来发现不合理,打算用B做RootComponent,注意,设置RootComponent逻辑在构造函数(Constructor)内进行。编译能通过,再次打开蓝图场景,发现会报异常警告root component cannot be attached to other components in the s...

2019-10-28 15:59:04 1201

SQLiteManager

SQLiteManager,对sqlite数据进行增删查改的有利工具,内含软甲+注册码,备注:Mac平台

2015-01-30

MacVim工具及插件

MacVim最新版本,vimdoc最新版本,syntax最新版本,与博客配置使用工具相同

2014-10-09

本地服务器

Java写的服务器,需要导入ADT,运行即可,不过需要先配置后台下载文件夹地址

2014-09-13

HttpManager

Cocos2d-x3.1 HttpClient的使用

2014-09-13

WaterWaveDemo

Cocos2d-x3.1粒子效果实现水波特效

2014-09-03

ListViewTestCode

Cocos2d-x3.1 ListView,将Class和Resource文件夹粘贴复制替换到3.1工程目录下,编译运行

2014-07-18

Scene切换与scheduler实例

代码实现一个类似微信的登录界面,工程是Cocos2d-x3.1工程,将Class文件夹与Resource文件夹替换3.1工程下的文件,编译运行即可

2014-07-17

C++ PRIMER习题解答

C++ PRIMER课后习题答案及代码,内容详细,有代码注释,中文版

2013-07-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除