Unreal Engine 4.6 Released!

[=JohnnyBeans78;187397]
Can we get some clarification on the TSubobject<> change? Should we be implementing the private with Get() Set() functions stating with 4.6 or 4.7? I see that making them private will happen in 4.6 (edit I mean 4.7) but what about the Get() Set() can/should we start using them now? Do these Getters and Setters need a certain signature? I am very glad to see the TSubs go (I never felt like I understood WTF I was doing with them), but now with the freedom comes questions :slight_smile:

If you are doing it honestly doesn’t matter.
The good coding practice is that raw pointers shouldn’t be really exposed directly.

The thing to get used is that all default subobjects (like Movement componenet in ACharacter), will be private and you will be accessing it trough GetMovementComponent() instead of directly.

I usually don’t make any components private, they either public or protected.

The Get is usually like



UYourComponent* GetYourComponent()
{
 return YourComponentPointer;
}


Setters are not needed, as last time i checked you can’t swap default subobjects at runtime.