• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
MichaelCen
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 ··· 9 下一页

2023年3月13日

三目运算
摘要: bool bResult = false;; float a = bResult ? 0 : 1; 阅读全文
posted @ 2023-03-13 15:22 MichaelCen 阅读(48) 评论(0) 推荐(0)
 
 

2022年11月17日

获取UI在屏幕上的坐标
摘要: 注意:这是DPI为1时的坐标,有需要可以乘上 阅读全文
posted @ 2022-11-17 15:42 MichaelCen 阅读(438) 评论(0) 推荐(0)
 
 

2022年11月9日

获取当前窗口分辨率
摘要: 阅读全文
posted @ 2022-11-09 16:28 MichaelCen 阅读(44) 评论(0) 推荐(0)
 
 

2022年8月15日

计时器
摘要: .h: FTimerHandle CountdownTimerHandle; //如果委托事件有参数 void ShiningObject(AStaticMeshActor* Object); .cpp: //事件委托 FTimerDelegate UpdateTextureDele = FTime 阅读全文
posted @ 2022-08-15 13:46 MichaelCen 阅读(79) 评论(0) 推荐(0)
 
头文件相关
摘要: UPROPERTY(BlueprintReadWrite, Category = "据点模式", meta = (ExposeOnSpawn = "true")) int SpawnTime; UFUNCTION(BlueprintCallable, Category = "据点模式") void 阅读全文
posted @ 2022-08-15 11:32 MichaelCen 阅读(23) 评论(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 阅读(791) 评论(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 阅读(702) 评论(0) 推荐(0)
 
 

2022年1月18日

批量获取资源--资源注册表
摘要: 官方文档 void URealisWidget::StartLoad() { FString TempString; FString UselessString; //(头文件中:UTexture2D* FirstTexture;)在蓝图中设定FirstTexture的值,目的是找它的地址,从而推断 阅读全文
posted @ 2022-01-18 11:28 MichaelCen 阅读(132) 评论(0) 推荐(0)
 
 

2021年2月7日

SVN回滚文件
摘要: 1. 读要回滚的版本 2. 复制该文件并保存到其它地方 3. 更新到最新版本 4. 把新建的复制品覆盖最新版本 5. 提交此文件 回滚完毕 阅读全文
posted @ 2021-02-07 16:42 MichaelCen 阅读(190) 评论(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 阅读(1177) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 ··· 9 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3