bevyengine / bevyengine/bevy

There should be some kind of error for spawning a scene handle without a `SceneBundle`.

Open
#13,313 3 comments 0 reactions 0 assignees View on GitHub
A-Scenes C-Usability S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## What problem does this solve or what need does it fill?

This is very confusing because this "successes" in release mode and spawns the mesh in a broken state without transforms. On debug mode there are hierarchy errors regarding transform and visibility, but not present in release mode.

## What solution would you like?

Log an explicit error for trying to spawn a scene without a `Transform` or `Visibility` component, even in release mode.

## What alternative(s) have you considered?

Keep things as is.

Contributor guide

Open the contributing guide

Research direction

The issue does not name files or tests; start by tracing the scene-handle spawning path and the validation of Transform and Visibility components. Reproduce the difference between debug and release modes, then verify that an explicit error is emitted when either component is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.