首页
新闻
博问
专区
闪存
班级
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
MichaelCen
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
[置顶]
蓝图Tips
摘要: 有些好用的节点,不写下来,很容易忘掉。 1. 调用命令行 全屏:r.setRes 1920 x 1080 f窗口:r.setRes 1920 x 1080 w 2. 播放视频 播放后要播一小段才能进行暂停! 3. 关于Scroll Box 1. 不要勾选Size to content, 否则无法拉动
阅读全文
posted @ 2019-03-08 15:58 MichaelCen
阅读(485)
评论(2)
推荐(1)
编辑
[置顶]
UE4 C++ Tips
摘要: 篇写的是关于UE4的C++方面的小技巧: 1.在构造函数里 //构建组件 RootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("RootComponent")); Camera = CreateDefaultSubobject<U
阅读全文
posted @ 2018-11-19 16:05 MichaelCen
阅读(2739)
评论(0)
推荐(1)
编辑
2023年3月14日
折叠代码块
摘要: #pragma region 代码块命名 一堆代码 #pragma endregion
阅读全文
posted @ 2023-03-14 11:20 MichaelCen
阅读(2)
评论(0)
推荐(0)
编辑
2023年3月13日
三目运算
摘要: bool bResult = false;; float a = bResult ? 0 : 1;
阅读全文
posted @ 2023-03-13 15:22 MichaelCen
阅读(1)
评论(0)
推荐(0)
编辑
2022年11月17日
获取UI在屏幕上的坐标
摘要: 注意:这是DPI为1时的坐标,有需要可以乘上
阅读全文
posted @ 2022-11-17 15:43 MichaelCen
阅读(103)
评论(0)
推荐(0)
编辑
2022年11月9日
获取当前窗口分辨率
摘要:
阅读全文
posted @ 2022-11-09 16:29 MichaelCen
阅读(8)
评论(0)
推荐(0)
编辑
2022年8月15日
计时器
摘要: .h: FTimerHandle CountdownTimerHandle; //如果委托事件有参数 void ShiningObject(AStaticMeshActor* Object); .cpp: //事件委托 FTimerDelegate UpdateTextureDele = FTime
阅读全文
posted @ 2022-08-15 13:46 MichaelCen
阅读(42)
评论(0)
推荐(0)
编辑
头文件相关
摘要: UPROPERTY(BlueprintReadWrite, Category = "据点模式", meta = (ExposeOnSpawn = "true")) int SpawnTime; UFUNCTION(BlueprintCallable, Category = "据点模式") void
阅读全文
posted @ 2022-08-15 11:32 MichaelCen
阅读(6)
评论(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
阅读(400)
评论(0)
推荐(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
阅读(210)
评论(0)
推荐(0)
编辑
2022年1月18日
批量获取资源--资源注册表
摘要: 官方文档 void URealisWidget::StartLoad() { FString TempString; FString UselessString; //(头文件中:UTexture2D* FirstTexture;)在蓝图中设定FirstTexture的值,目的是找它的地址,从而推断
阅读全文
posted @ 2022-01-18 11:28 MichaelCen
阅读(41)
评论(0)
推荐(0)
编辑
2021年2月7日
SVN回滚文件
摘要: 1. 读要回滚的版本 2. 复制该文件并保存到其它地方 3. 更新到最新版本 4. 把新建的复制品覆盖最新版本 5. 提交此文件 回滚完毕
阅读全文
posted @ 2021-02-07 16:42 MichaelCen
阅读(144)
评论(0)
推荐(0)
编辑
下一页
公告