会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
MichaelCen
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
···
8
下一页
2022年8月15日
计时器
摘要: .h: FTimerHandle CountdownTimerHandle; //如果委托事件有参数 void ShiningObject(AStaticMeshActor* Object); .cpp: //事件委托 FTimerDelegate UpdateTextureDele = FTime
阅读全文
posted @ 2022-08-15 13:46 MichaelCen
阅读(66)
评论(0)
推荐(0)
编辑
头文件相关
摘要: UPROPERTY(BlueprintReadWrite, Category = "据点模式", meta = (ExposeOnSpawn = "true")) int SpawnTime; UFUNCTION(BlueprintCallable, Category = "据点模式") void
阅读全文
posted @ 2022-08-15 11:32 MichaelCen
阅读(17)
评论(0)
推荐(0)
编辑
2022年2月15日
UE4根据日期获得星期几
摘要: .h /* 根据日期获得星期几 C为年份前两位,Year为年份后两位,Month为月份,Day为号数, 如果Day/Month任意一项为0的时候,那么则根据当前系统时间计算 */ UFUNCTION(BlueprintCallable,BlueprintPure, Category = "DayOf
阅读全文
posted @ 2022-02-15 14:58 MichaelCen
阅读(690)
评论(4)
推荐(0)
编辑
2022年2月9日
UE4计算FString中各类型字符数量(如中文、英文、数字等)
摘要: .h //计算各类型字符数量 UFUNCTION(BlueprintCallable, Category = "UI") void GetCharacterNumber(FString szTxt, int& nChinese, int& nEnlish, int& nNumber, int& nO
阅读全文
posted @ 2022-02-09 16:49 MichaelCen
阅读(619)
评论(0)
推荐(0)
编辑
2022年1月18日
批量获取资源--资源注册表
摘要: 官方文档 void URealisWidget::StartLoad() { FString TempString; FString UselessString; //(头文件中:UTexture2D* FirstTexture;)在蓝图中设定FirstTexture的值,目的是找它的地址,从而推断
阅读全文
posted @ 2022-01-18 11:28 MichaelCen
阅读(108)
评论(0)
推荐(0)
编辑
2021年2月7日
SVN回滚文件
摘要: 1. 读要回滚的版本 2. 复制该文件并保存到其它地方 3. 更新到最新版本 4. 把新建的复制品覆盖最新版本 5. 提交此文件 回滚完毕
阅读全文
posted @ 2021-02-07 16:42 MichaelCen
阅读(177)
评论(0)
推荐(0)
编辑
2021年1月29日
遍历枚举
摘要: .h: UENUM(BlueprintType) enum class ESequenceItem : uint8 { Invalid = 0, WaitingSubway UMETA(DisplayName = "体验者等待地铁"), FindPeople UMETA(DisplayName =
阅读全文
posted @ 2021-01-29 14:43 MichaelCen
阅读(1128)
评论(0)
推荐(0)
编辑
2021年1月13日
新增了某个模组后VS编译不过,报错说找不到头文件
摘要: 在Build.cs添加对应模组。 如加UCableComponent时: .Build.cs ... PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "
阅读全文
posted @ 2021-01-13 09:59 MichaelCen
阅读(307)
评论(0)
推荐(0)
编辑
2021年1月12日
重写Overlap事件
摘要: .h: UFUNCTION() virtual void StartTouchEvent(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 Other
阅读全文
posted @ 2021-01-12 11:33 MichaelCen
阅读(125)
评论(0)
推荐(0)
编辑
2020年12月8日
UE4 C++中的委托
摘要: 1. 委托的声明 //这个要写在类外,头文件中,且委托名一定是以F开头,这里的委托名是FTheEvent DECLARE_DYNAMIC_MULTICAST_DELEGATE(FTheEvent); //含有一个参数的委托写法,ESequenceItem是类型名,TargetMission是变量名
阅读全文
posted @ 2020-12-08 15:30 MichaelCen
阅读(598)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
···
8
下一页
公告