mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Serialize and Deserialize Cube marker struct in server example
This commit is contained in:
parent
ac96b055e8
commit
50552c0311
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
//! A Bevy app that you can connect to with the BRP and edit.
|
||||
|
||||
use bevy::{prelude::*, remote::RemotePlugin};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
fn main() {
|
||||
App::new()
|
||||
|
@ -52,6 +53,6 @@ fn setup(
|
|||
});
|
||||
}
|
||||
|
||||
#[derive(Component, Reflect)]
|
||||
#[reflect(Component)]
|
||||
#[derive(Component, Reflect, Serialize, Deserialize)]
|
||||
#[reflect(Component, Serialize, Deserialize)]
|
||||
struct Cube(f32);
|
||||
|
|
Loading…
Reference in a new issue