Description
Null Coalescing Operator is a feature found in C#, JavaScript, Kotlin, and many other programming languages, that allows a programmer to more concisely choose between two variables based on whether one of them is null. For an in-depth background, you can check out the Wikipedia article on the Null Coalescing Operator, but it's a very simple feature to understand:
The Null Coalescing Operator returns the first of its given inputs that is not null.
The Null Assignment Operator performs lazy initialization.
This plugin introduces the Null Coalescing and Null Coalescing Assignment operators as native language features to Blueprints. The nodes included in the plugin are not simply UFUNCTION(BlueprintCallable)-decorated functions, but rather implementations of UK2Node that generate optimized bytecode, and support other bespoke interactions within the graph editor.
By adding these operators to your UE4 projects, you gain the ability to compose Blueprint logic that is more expressive and maintainable, and to compose common logical patterns with less effort or with better optimization. Compared to the alternative approaches that are built-in to Unreal Engine, you'll find that these seemingly simple nodes are actually packed with features that make your job as a Blueprint author more enjoyable.
Included formats
- versions