StateTree Tools

Ready-made StateTree tools for Unreal Engine 5


Project maintained by StateTreeTools Hosted on GitHub Pages — Theme by mattgraham

Truncate

Plugin: StateTreeToolsCore Category: Math | Float

Drops the fractional part of a float and returns the integer portion, rounding toward zero. For example, 2.9 becomes 2 and -2.9 becomes -2. Unlike Floor, Truncate always rounds toward zero rather than toward negative infinity.


Configuration

Value

The float value to truncate.

Result

The integer part of Value, with the fractional portion discarded.

Unreal Engine Version Notes

Property functions are not available in UE 5.4. This node requires UE 5.5 or later.


← Back to Math | Float · ← Back to home