Files
Carter Anderson d2af4a565d Add FromTemplate derives to Components using Handle (#23696)
# Objective

A lot of Bevy's built in types don't derive FromTemplate, which is what
makes things like asset handles "templatable" in BSN:

```rust
bsn! {
  ImageNode { image: "path_to_image.png" }
}
```

## Solution

Derive `FromTemplate` for components that have handles.

In cases of fields with `Option<SOME_TEMPLATED_TYPE>`, I've added the
`#[template(OptionTemplate<XTemplate>)]` attribute, as these cases can't
use the blanket `Default + Clone` template implementation (which doesn't
do templating on the internal type). Later I'm likely to propose
something like `#[template(built_in)]` for standard "collection types"
to make this a little less boilerplatey.
2026-04-07 01:45:51 +00:00
..
2026-03-24 23:31:06 +00:00
2026-03-24 23:31:06 +00:00
2026-03-24 23:31:06 +00:00
2026-03-24 23:31:06 +00:00