摘要: CoreMisc.h 原博客地址 读取 FFileHelper::LoadFileToString 读取全部内容,存到 FString FString TextPath = FPaths::ProjectDir() + TEXT("DataDrive/Dialogue.txt"); TextPath 阅读全文
posted @ 2021-05-08 22:26 砥才人 阅读(5718) 评论(0) 推荐(2) 编辑
摘要: Datatable 读取行数据 1. 创建结构体 继承自 FTableRowBase USTRUCT(BlueprintType) struct FSimpleStruct :public FTableRowBase { GENERATED_USTRUCT_BODY() public: UPROPE 阅读全文
posted @ 2021-05-08 17:13 砥才人 阅读(5643) 评论(4) 推荐(0) 编辑
摘要: 基于UKismetMathLibrary DateTime 相关函数 Timespan 运算操作相关函数见尾部附录 /** Returns the date component of A */ UFUNCTION(BlueprintPure, meta=(DisplayName="GetDate") 阅读全文
posted @ 2021-05-08 10:52 砥才人 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: 基于UKismetSystemLibrary PrintString /** * Prints a string to the log, and optionally, to the screen * If Print To Log is true, it will be visible in th 阅读全文
posted @ 2021-05-08 10:34 砥才人 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 基于UKismetSystemLibrary 获取各类名称 // Returns the actual object name. UFUNCTION(BlueprintPure, Category = "Utilities") static FString GetObjectName(const U 阅读全文
posted @ 2021-05-08 10:33 砥才人 阅读(3038) 评论(0) 推荐(0) 编辑
摘要: 基于UKismetSystemLibrary /** Draw a debug line */ UFUNCTION(BlueprintCallable, Category="Rendering|Debug", meta=(WorldContext="WorldContextObject", Deve 阅读全文
posted @ 2021-05-08 10:30 砥才人 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 基于UGameplayStatics Blueprint_PredictProjectilePath_ByObjectType 根据 Object Type,算出抛物线的点集合和检测结果 static bool Blueprint_PredictProjectilePath_ByObjectType 阅读全文
posted @ 2021-05-08 09:45 砥才人 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: 基于UGameplayStatics 获取运行时间 /** Returns the frame delta time in seconds, adjusted by time dilation. */ UFUNCTION(BlueprintPure, Category = "Utilities|Ti 阅读全文
posted @ 2021-05-08 09:41 砥才人 阅读(3110) 评论(0) 推荐(0) 编辑