You are viewing documentation for v1.1. Switch to current version โ†’

๐Ÿงญ Object Variable Enums

Short Description

Core enums that describe container shape and queue modes for Object Variables.

Long Description

These enums are used by Object Variable classes and editor tooling to describe container semantics. They are also used in metadata to determine how pins and containers should behave in Blueprints.

๐Ÿš€ Features

  • Container type enumeration for single, array, map, set, and specialized containers.
  • Queue mode enumeration for SPSC vs MPSC queues.

๐Ÿ“š Usage Examples

EObjectVariableContainerType_E ContainerType = EObjectVariableContainerType_E::EArray;
EObjectVariableQueueMode_E QueueMode = EObjectVariableQueueMode_E::EMpsc;

Use the enums in details panels when configuring Object Variable containers.

EObjectVariableContainerType_E

Describes which container shape an Object Variable represents, including arrays, maps, sets, queues, stacks, deques, and multimaps.

Enum values include ESingle, EArray, EMap, ESet, EQueue, EStack, EDeque, and EMultiMap.

if (ContainerType == EObjectVariableContainerType_E::EMap)
{
    // map-specific logic
}

Best Practices

  • Keep container types aligned with the actual Object Variable subclass.
  • Use queue mode enums only with queue-style Object Variables.

Troubleshooting

  • If a Blueprint pin shows the wrong container, verify the enum is set to the correct container type.