mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
register Cow<'static, str>
for reflection (#5664)
# Objective Fixes #5597 ## Solution Registered type at suggested place.
This commit is contained in:
parent
21dacbf137
commit
bd317ea364
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@ pub mod prelude {
|
|||
use bevy_app::prelude::*;
|
||||
use bevy_ecs::entity::Entity;
|
||||
use bevy_utils::HashSet;
|
||||
use std::borrow::Cow;
|
||||
use std::ops::Range;
|
||||
|
||||
/// Adds core functionality to Apps.
|
||||
|
@ -43,7 +44,8 @@ fn register_rust_types(app: &mut App) {
|
|||
app.register_type::<Range<f32>>()
|
||||
.register_type::<String>()
|
||||
.register_type::<HashSet<String>>()
|
||||
.register_type::<Option<String>>();
|
||||
.register_type::<Option<String>>()
|
||||
.register_type::<Cow<'static, str>>();
|
||||
}
|
||||
|
||||
fn register_math_types(app: &mut App) {
|
||||
|
|
Loading…
Reference in a new issue