Practical guide

Control a world-indicator lens

Discover and toggle host-owned world markers without moving simulation authority into Lua or rendering.

Procedure

  1. Call world_indicators.channels and show controls only for channels returned to the current package origin.
  2. Use a stable channel ID and world_indicators.is_visible to reflect its current per-session state.
  3. Change visibility from an explicit package action with world_indicators.set_visible.
  4. Treat indicator labels and values as detached presentation facts; do not infer write authority from them.
  5. Use Safe Mode when a development lens interferes with normal presentation; development-only channels are hidden with the development packages.

Example

local channel_id = "development.resource-activity"
local visible = world_indicators.is_visible(channel_id)

function handle_action(action_id)
    if action_id == "addon.resource-activity.toggle" then
        world_indicators.set_visible(channel_id, not visible)
    end
end

Constraints and recovery

Related symbols

Project references