Fork me on GitHub
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 125 下一页

2016年8月8日

摘要: TSet 保存唯一值的合集,与 std::set 相似。TArray 通过 AddUnique 和 Contains 方法可用作集。然而 TSet 可更快实现这些操作,但无法像 TArray 那样将它们用作 UPROPERTY。TSet 不会像 TArray 那样将元素编入索引。 需注意:TArra 阅读全文
posted @ 2016-08-08 15:14 pengyingh 阅读(3274) 评论(0) 推荐(0)

2016年7月6日

摘要: Key-Value Hash 创建 add添加元素 add同key元素会覆盖 不带值得键会重载,初始化默认值"" Emplace 代替 Add,避免插入映射时创建出临时文件: 使用 Append 函数进行合并即可插入来自另一个映射的所有元素:同key覆盖 迭代 映射还提供其自身的迭代器类型,以便对迭 阅读全文
posted @ 2016-07-06 19:06 pengyingh 阅读(3599) 评论(0) 推荐(1)

2016年6月7日

摘要: Iteration There are several ways to iterate over the elements of your array, but the recommended way is to use C++'s ranged-for feature: Regular index 阅读全文
posted @ 2016-06-07 18:34 pengyingh 阅读(5841) 评论(0) 推荐(0)
摘要: GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("This is an on screen message!")); UE_LOG(LogTemp, Log, TEXT("Log text %f"), 0.1f); UE_LOG(LogTemp, Warning, TEXT("Log warning")); UE_LOG(L... 阅读全文
posted @ 2016-06-07 18:34 pengyingh 阅读(1218) 评论(0) 推荐(0)
摘要: Since different platforms have different sizes for basic types such as short, int, and long, UE4 provides the following types which you should use as 阅读全文
posted @ 2016-06-07 13:45 pengyingh 阅读(321) 评论(0) 推荐(0)
摘要: Unreal Engine provides tools that generate code for you during the build process. These tools have some class naming expectations and will trigger war 阅读全文
posted @ 2016-06-07 13:44 pengyingh 阅读(315) 评论(0) 推荐(0)

2016年6月3日

摘要: 转自:https://docs.unrealengine.com/latest/CHN/Programming/Introduction/index.html 继承自UObject的类 系统会进行垃圾回收 Any UObject pointer stored in a UPROPERTY will 阅读全文
posted @ 2016-06-03 18:21 pengyingh 阅读(1246) 评论(0) 推荐(0)

2016年5月13日

摘要: 参见 https://www.unrealengine.com/blog/unreal-property-system-reflection USING REFLECTION DATA To iterate over all members of a UStruct, use a TFieldIte 阅读全文
posted @ 2016-05-13 14:28 pengyingh 阅读(622) 评论(0) 推荐(0)

2016年5月11日

摘要: #if CPP / #endif #if WITH_EDITOR 、 WITH_EDITORONLY_DATA / #endif (UHT模式) 阅读全文
posted @ 2016-05-11 16:02 pengyingh 阅读(2006) 评论(0) 推荐(0)
摘要: 参见:https://docs.unrealengine.com/latest/CHN/Programming/UnrealArchitecture/Reference/Classes/index.html The most basic form of a UObject constructor i 阅读全文
posted @ 2016-05-11 11:54 pengyingh 阅读(928) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 125 下一页

导航