mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
Derive same attributes as MainEntity for RenderEntity (#16191)
Spotted while working on updating bevy_egui. Discord context: https://discordapp.com/channels/691052431525675048/1301212128115687454/1301469954465464320
This commit is contained in:
parent
9a0c9b9e8f
commit
88d1692105
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ pub struct SyncToRenderWorld;
|
||||||
/// Component added on the main world entities that are synced to the Render World in order to keep track of the corresponding render world entity.
|
/// Component added on the main world entities that are synced to the Render World in order to keep track of the corresponding render world entity.
|
||||||
///
|
///
|
||||||
/// Can also be used as a newtype wrapper for render world entities.
|
/// Can also be used as a newtype wrapper for render world entities.
|
||||||
#[derive(Component, Deref, Clone, Debug, Copy)]
|
#[derive(Component, Deref, Copy, Clone, Debug, Eq, Hash, PartialEq)]
|
||||||
pub struct RenderEntity(Entity);
|
pub struct RenderEntity(Entity);
|
||||||
impl RenderEntity {
|
impl RenderEntity {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in a new issue