UKismetSystemLibrary::MakeLiteralByte
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPureBlueprintThreadSafe
Description
Returns the byte passed in unchanged. Backs Blueprint's literal byte node, which also underlies enum literal pins since UENUM values are represented as bytes internally.
Caveats & Gotchas
- • Blueprint enum literal pins route through this same node, since enums narrower than 256 values are stored as uint8 under the hood.
- • No range validation is performed — Value is accepted as-is, so it's the caller's responsibility to pass a byte that maps to a valid enumerator when used for an enum pin.
Signature
static uint8 MakeLiteralByte(uint8 Value) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Value | uint8 | Value the literal byte node should return. | — |
Return Type
uint8 Example
Literal pass-through C++
uint8 Value = UKismetSystemLibrary::MakeLiteralByte(7); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?