bevyengine / bevyengine/bevy

Doing `#[reflect(ignore)]` on fields in a struct still requires `Default` on that field

Open
#13,851 4 comments 0 reactions 0 assignees View on GitHub
A-Reflection C-Usability
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

Latest: 1395e3672cd262e51e1b6e3c5b9d12b02cb90998

## What you did

![image](https://github.com/bevyengine/bevy/assets/52322338/6d215aa7-4fa8-4955-8113-d529b0af5ac2)

## What went wrong

I couldn't ignore a field on my struct which I wanted to derive reflect on, since that field did not impl `Default` and I had no control over that field.

My expectation was that the field is ignored entirely with no limitations.

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.