Skip to content

Commit

Permalink
alias and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Dec 29, 2021
1 parent 1c8a1ee commit 638bdab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bevy_sprite/src/sprite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub struct Sprite {
/// How a sprite is positionned relative to it's [`Transform`](bevy_transform::components::Transform).
/// It defaults to `Anchor::Center`.
#[derive(Debug, Clone, Reflect)]
#[doc(alias = "pivot")]
pub enum Anchor {
Center,
BottomLeft,
Expand All @@ -33,7 +34,8 @@ pub enum Anchor {
TopLeft,
TopCenter,
TopRight,
/// Custom anchor point. Top Left is `(-0.5, 0.5)`.
/// Custom anchor point. Top left is `(-0.5, 0.5)`, center is `(0.0, 0.0)`. The value will
/// be scaled with the sprite size.
Custom(Vec2),
}

Expand Down

0 comments on commit 638bdab

Please sign in to comment.