Add PartialEq to Anchor (#10424)
Add PartialEq to Anchor. # Objective Make Anchor work with bevy_egui's ComboBox. ## Solution Make Anchor PartialEq.
This commit is contained in:
		
							parent
							
								
									04ceb46fe0
								
							
						
					
					
						commit
						49cff08560
					
				| @ -25,7 +25,7 @@ pub struct Sprite { | |||||||
| 
 | 
 | ||||||
| /// How a sprite is positioned relative to its [`Transform`](bevy_transform::components::Transform).
 | /// How a sprite is positioned relative to its [`Transform`](bevy_transform::components::Transform).
 | ||||||
| /// It defaults to `Anchor::Center`.
 | /// It defaults to `Anchor::Center`.
 | ||||||
| #[derive(Component, Debug, Clone, Copy, Default, Reflect)] | #[derive(Component, Debug, Clone, Copy, PartialEq, Default, Reflect)] | ||||||
| #[doc(alias = "pivot")] | #[doc(alias = "pivot")] | ||||||
| pub enum Anchor { | pub enum Anchor { | ||||||
|     #[default] |     #[default] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Mincong Lu
						Mincong Lu