FObjectInitializer is a utility class that's used for object construction. It comes in play when constructing CDOs, object instances and default subobjects. FObjectInitializer::PostConstructInit() is an important function for value initialization. This function is responsible both for: Defau...
New: FBX imports now support using Multi-Sub-Object Materials generated by 3DS Max to prevent importing unused Materials. New: FBX now takes into account all scene conversion options that were set at import. New: Added support for detail customizations on root structs. New: Added the ability t...
Check: cppcoreguidelines-prefer-member-initializerWarning Message:'bOutOfHealth' should be initialized in an in-class default member initializer Example:ULyraHealthSet::ULyraHealthSet() : Health(100.0f) , MaxHealth(100.0f) { bOutOfHealth = false; ...
() FText Name; UPROPERTY() int32 Score; void AddScore(int32 InScore) { Score += InScore; } }; UCLASS() class ATeamSetup : public AInfo { GENERATED_BODY() public: ATeamSetup(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); UPROPERTY(Transient) TArray<FTeam...
Flagging methods as const if they do not modify the object, and using const iteration over containers if the loop isn't intended to modify the container. Example: void SomeMutatingOperation(FThing& OutResult, const TArray<Int32>& InArray) ...
At the same time, we have been working towards better compliance with the C++20 standard (even though it’s still in progress in the Committee!). We’ve also made the editor smarter and added features to help game developers using Unreal Engine get more from it. ...
Fixed issue where uncrouching while on top of a physics object would cause penetration and incorrect behavior. New: Added Set Auto Activate Blueprint function to Set Auto Activate, which is safe to call from Construction Scripts.New: The Gameplay Tags Editor module has been moved to a plugin,...
New: PCIP.SetDefaultSubobjectClass and PCIP.DoNotCreateOptionalDefaultSubobject can no longer be used outside of class initializer list. New: Stable sort algorithm for TArray. It's slower than classic sort, but it's keeping the input order of equal elements.* New: ScriptPlugin now supports...