上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 蓝图版 导入外部图片 file://E:/UE___Projects_Test/MyProjectAAA/Plugins/WXimage.jpg 导出图图片 一般导出 .hdr 文件 导出 png 设置一些格式 C++ 版 读取外部图片 build.cs 添加 ImageWrapper 模块,使用时 阅读全文
posted @ 2021-05-13 22:53 砥才人 阅读(7315) 评论(0) 推荐(1) 编辑
摘要: XmlParser 简单读取 XmlParser 为引擎自带模块 XML 文件 如果XML要读取中文乱码,可将xml编码改成Unicode保存 <?xml version="1.0" encoding="UTF-8"?> <Movie Name="悬崖之上"> <Category>剧情/悬疑/动作< 阅读全文
posted @ 2021-05-13 16:53 砥才人 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: 准备条件 Json 格式 { "Players":[ { "Name": "Player1", "health": 200, "icon": "Texture2D'/Game/FourEvilDragonsHP/Textures/DragonTheUsurper/BlueHPTex.BlueHPTe 阅读全文
posted @ 2021-05-10 16:57 砥才人 阅读(6366) 评论(0) 推荐(0) 编辑
摘要: CoreMisc.h 原博客地址 读取 FFileHelper::LoadFileToString 读取全部内容,存到 FString FString TextPath = FPaths::ProjectDir() + TEXT("DataDrive/Dialogue.txt"); TextPath 阅读全文
posted @ 2021-05-08 22:26 砥才人 阅读(5598) 评论(0) 推荐(2) 编辑
摘要: Datatable 读取行数据 1. 创建结构体 继承自 FTableRowBase USTRUCT(BlueprintType) struct FSimpleStruct :public FTableRowBase { GENERATED_USTRUCT_BODY() public: UPROPE 阅读全文
posted @ 2021-05-08 17:13 砥才人 阅读(5499) 评论(4) 推荐(0) 编辑
摘要: 基于UKismetMathLibrary DateTime 相关函数 Timespan 运算操作相关函数见尾部附录 /** Returns the date component of A */ UFUNCTION(BlueprintPure, meta=(DisplayName="GetDate") 阅读全文
posted @ 2021-05-08 10:52 砥才人 阅读(1904) 评论(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 砥才人 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 基于UKismetSystemLibrary 获取各类名称 // Returns the actual object name. UFUNCTION(BlueprintPure, Category = "Utilities") static FString GetObjectName(const U 阅读全文
posted @ 2021-05-08 10:33 砥才人 阅读(2981) 评论(0) 推荐(0) 编辑
摘要: 基于UKismetSystemLibrary /** Draw a debug line */ UFUNCTION(BlueprintCallable, Category="Rendering|Debug", meta=(WorldContext="WorldContextObject", Deve 阅读全文
posted @ 2021-05-08 10:30 砥才人 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 基于UGameplayStatics Blueprint_PredictProjectilePath_ByObjectType 根据 Object Type,算出抛物线的点集合和检测结果 static bool Blueprint_PredictProjectilePath_ByObjectType 阅读全文
posted @ 2021-05-08 09:45 砥才人 阅读(1115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页