DPB2Class · World, character and items

NetworkObject

Common view of an object in the current area, including its identity, position and interaction state.

Namespace: DreamPoeBot.Loki.Game.Objects

public class NetworkObject
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here

Legacy Abyss predicates are omitted from this list. Old member permalinks remain available for compatibility, with support and release notes.

Show all members

Ui

PropertyLink ↗
public Element NetworkObject.Ui { get; }

Reads the ground-label UI element associated with this object's ID. Returns null when no matching label is available. This is a label element, not a complete control panel for the object; follow Element to inspect its text, visibility and children.

Value type: Element
Explore Element → members & methods

A game-interface element. Inspect text, visibility, geometry and child elements; follow the individual members for their signatures and result types. Prefer a named panel wrapper when one is available.

Inherited members and contracts

0 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

Examples for this member

Only examples explicitly associated with this declaration are shown.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Read the label associated with an object

if (!LokiPoe.IsInGame)
    return;

var target = LokiPoe.ObjectManager.GetObjectsByType<NetworkObject>()
    .FirstOrDefault(obj => obj.IsTargetable);
if (target == null)
    return;

var label = target.Ui;
if (label == null || !label.IsVisible)
    return;

var text = label.Text;

DPB2 only. Ui looks up the ground label associated with this object's ID; many objects have no available label. This sample reads it and sends no input. It does not expose a complete object panel. Reacquire the object and label after an area or UI change.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.