UKismetMathLibrary::Or_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Performs a bitwise OR on A and B and returns the result. Commonly used to combine or set bits in a 64-bit flags field.
Caveats & Gotchas
- • OR can only set bits, never clear them. To clear a bit, AND with the bitwise NOT of the mask: And_Int64Int64(Flags, Not_Int64(BitMask)).
- • Blueprint marks this as CommutativeAssociativeBinaryOperator, so it can be chained with multiple inputs in a single node. Order of evaluation is deterministic but the graph may look misleading if the inputs are not all pure.
Signature
static UE_INL_API int64 Or_Int64Int64(int64 A, int64 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | int64 | First operand. | — |
| B | int64 | Second operand. | — |
Return Type
int64 Example
Combine two permission masks C++
int64 ReadFlags = GetReadPermissions();
int64 WriteFlags = GetWritePermissions();
int64 Combined = UKismetMathLibrary::Or_Int64Int64(ReadFlags, WriteFlags); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?