bevyengine / bevyengine/bevy

Allow for adding a relationship without a bundle.

Open
#19,230 5 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Feature D-Straightforward S-Ready-For-Implementation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

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

Current if I am trying to spawn a relationship without specifying any additional components, the only way to do this is by spawning a unit

```rust
commands.spawn_empty().with_related::(());
```

Which feels clunky.

## What solution would you like?

A method that allows for spawning a relationships without a bundle

```rust
commands.spawn_empty().with_related_empty::();
```

And some way of doing so with the new macros, though I'm not sure how that would be possible

## What alternative(s) have you considered?

Doing it the old way as specified above

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.