add bevy_derive to prelude
This commit is contained in:
		
							parent
							
								
									5d893a83f2
								
							
						
					
					
						commit
						c6d7402318
					
				| @ -1,7 +1,5 @@ | |||||||
| use bevy::prelude::*; | use bevy::prelude::*; | ||||||
| 
 | 
 | ||||||
| use bevy_derive::Uniforms; |  | ||||||
| 
 |  | ||||||
| #[derive(Uniforms, Default)] | #[derive(Uniforms, Default)] | ||||||
| struct MyMaterial { | struct MyMaterial { | ||||||
|     pub color: Color, |     pub color: Color, | ||||||
|  | |||||||
| @ -9,7 +9,6 @@ crate-type = ["cdylib"] | |||||||
| 
 | 
 | ||||||
| [dependencies] | [dependencies] | ||||||
| bevy = { path = "../../../../bevy" } | bevy = { path = "../../../../bevy" } | ||||||
| bevy_derive = { path = "../../../bevy_derive" } |  | ||||||
| 
 | 
 | ||||||
| [profile.release] | [profile.release] | ||||||
| debug = true | debug = true | ||||||
| @ -1,5 +1,4 @@ | |||||||
| use bevy::{prelude::*, plugin::AppPlugin}; | use bevy::{prelude::*, plugin::AppPlugin}; | ||||||
| use bevy_derive::RegisterAppPlugin; |  | ||||||
| 
 | 
 | ||||||
| #[derive(RegisterAppPlugin)] | #[derive(RegisterAppPlugin)] | ||||||
| pub struct ExamplePlugin; | pub struct ExamplePlugin; | ||||||
|  | |||||||
| @ -13,4 +13,4 @@ pub mod ui; | |||||||
| pub use bevy_transform as transform; | pub use bevy_transform as transform; | ||||||
| pub use glam as math; | pub use glam as math; | ||||||
| pub use legion; | pub use legion; | ||||||
| pub use once_cell; | pub use once_cell; | ||||||
| @ -24,3 +24,4 @@ pub use legion::{ | |||||||
|     }, |     }, | ||||||
| }; | }; | ||||||
| pub use math::{Mat3, Mat4, Quat, Vec2, Vec3, Vec4}; | pub use math::{Mat3, Mat4, Quat, Vec2, Vec3, Vec4}; | ||||||
|  | pub use bevy_derive::*; | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson