豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

game_view screenshots with include_image miss UI Toolkit overlays #1039

@KennerMiner

Description

@KennerMiner

Summary

manage_scene(action="screenshot", capture_source="game_view", include_image=true) can miss UI Toolkit overlays in Play Mode.

Problem

When include_image=true is used without an explicit camera target, the screenshot path captures through camera rendering so it can return image bytes inline in the response.

That misses UI Toolkit content because UI Toolkit is composited after the camera render.

Expected behavior

When requesting a game_view screenshot with include_image=true in Play Mode, the returned inline image should include the final composited frame, including UI Toolkit overlays.

Repro

  1. Enter Play Mode in a scene that displays UI Toolkit content in the Game view.
  2. Call manage_scene(action="screenshot", capture_source="game_view", include_image=true).
  3. Inspect the returned image.
  4. Observe that world rendering is present but UI Toolkit overlays are missing.

Proposed fix

Use composited frame capture for the affected inline-image path, while keeping existing behavior for explicit camera screenshots and other screenshot modes.

Notes

This appears specific to the game_view + include_image=true Play Mode path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions