We’re excited to share a few of the new features now available on the branch on GitHub. To be able to try out these new features, you will need to download the source code for the branch and build the Engine yourself. For more information about how to build the Engine from source code, please see page. The branch on GitHub is constantly being updated and is not quality tested so it may be potentially unstable. We do not recommend using the branch for project development. If you wish to wait, these features will be made available to all in an upcoming official release.
Engine News
New Features
**
Blueprints**
**
Local Variable Default Values
**
Local variables in Functions now support default values!
No more having to bloat the start of your function with nodes to setup default values. These values are not persistent between function calls, every time the function is entered, the value should be the default once more.
&stc=1
Materials
**Coming soon: Time Material Expression
**
The Time Node in the Material Editor now has an optional Period; if enabled, Time will wrap around that value; however the main characteristic of is that enabling a Period will perform math computations on the CPU (running full precision on mobile!).
E.g., when the time reaches 2 it will wrap around to zero:
&stc=1
When enabling Period, the CPU will evaluate as much as it can; the following graph will evaluate all the nodes on the CPU (at high precision!):
&stc=1What about Panner? There was no safe way to get working with the new system (before you could have relied on the time getting to 20 for example, and we’d have to know that in the period!) so all Panner nodes will not automatically update. However doing your own Panner node should be 3 nodes long (Time with Period * Speed + TexCoord)
Camera Spring Arm Component Improvements
Cameras now use sub-stepping to fix issues under variable frame rates. Cameras following moving targets and using “camera lag” are now much smoother!
Additionally there is now an option to limit the distance a camera may lag behind its target (SpringArmComponent.CameraLagMaxDistance).
can be used to fix issues with fast moving camera targets and a slow camera interp speed.
We have also added a debug visualization option (bDrawDebugLagMarkers flag) to visualize the lag target and current location.
The debug visualization changes color when the distance is being clamped.
Example Video:
https://www…com/watch?v=QkrcLmklHIM&=youtu.be