Skip to content

Portable Device

Use AOperatingSystemPortableDeviceActor when the device should simulate battery life, charging, and low-power warnings — laptops, phones, tablets, or any unplugged hardware.

Added in v3.5.0.

stateDiagram-v2
  [*] --> Full: Battery above low threshold
  Full --> Low: Level below warning
  Low --> Charging: Begin Charging Battery
  Charging --> Full: Level restored
  Full --> Draining: Unplugged
  Draining --> Low: Consume delay ticks
  1. Blueprint Class → Portable Device Actor
  2. Assign your UOperatingSystemBaseDevice class (same as a stationary device).
  3. Place in level and configure battery settings.

Portable device details

SettingDescription
Has BatteryIf false, device will not start
Battery LevelStarting level; 0 requires Begin Charging Battery before boot
Battery Consume DelaySeconds per 1% drain while unplugged
Current BatteryName, brand, capacity (mAh), charge rate, efficiency loss
Low Battery Warning LevelTriggers warning event below this level
Battery Save State FlagsAuto-save on consume/charge events

Portable device functions

FunctionPurpose
Begin Charging BatteryStart charging from a power source
Stop Charging BatteryUnplug
Set Battery LevelCheat / narrative override

Portable devices emit C++ events you can listen to through Device Messenger:

Portable device event listeners

Example: show a UMG overlay when On Low Battery Warning fires, or save the game when On Battery Consumed matches your save flags.

Using Device Messenger

Device ActorPortable Device Actor
Use caseDesktop PC, kiosk, serverLaptop, phone, tablet
BatteryN/AFull simulation
Device classSame UOperatingSystemBaseDeviceSame

The OS and programs are identical — only the actor type and power model differ.