UBlueprintSetLibrary::Set_Difference

Assigns Result to the relative difference of two sets, A and B.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/BlueprintSetLibrary.h

Include

#include "Kismet/BlueprintSetLibrary.h"

Syntax

static void Set_Difference
(
    const TSet< int32 > & A,
    const TSet< int32 > & B,
    TSet< int32 > & Result
)

Remarks

Assigns Result to the relative difference of two sets, A and B. That is, Result will contain all elements that are in Set A but are not found in Set B. Note that the difference between two sets is not commutative. The Set whose elements you wish to preserve should be the first (top) parameter. Also called the relative complement.

Parameters

Parameter

Description

A

Starting set

B

Set of elements to remove from set A

Result

Set containing all elements in A that are not found in B

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss