Skip to content

Commit c7c6fb8

Browse files
alice-i-cecilemockersf
authored andcommitted
Improve migration guide for Sprite anchor changes (#21155)
# Objective - #18393 could use a better migration guide. - Fixes #21013 ## Solution - Make a table for easy CTRL+F
1 parent fc9d96e commit c7c6fb8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

release-content/migration-guides/anchor_is_removed_from_sprite.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,18 @@ pull_requests: [18393]
44
---
55

66
The `anchor` field has been removed from `Sprite`. Instead the `Anchor` component is now a required component on `Sprite`.
7+
8+
The anchor variants have been moved to associated constants, following the table below:
9+
10+
| 0.16 | 0.17 |
11+
| --------------------- | --------------------- |
12+
| Anchor::Center | Anchor::Center |
13+
| Anchor::BottomLeft | Anchor::BOTTOM_LEFT |
14+
| Anchor::BottomCenter | Anchor::BOTTOM_CENTER |
15+
| Anchor::BottomRight | Anchor::BOTTOM_RIGHT |
16+
| Anchor::CenterLeft | Anchor::CENTER_LEFT |
17+
| Anchor::CenterRight | Anchor::CENTER_RIGHT |
18+
| Anchor::TopLeft | Anchor::TOP_LEFT |
19+
| Anchor::TopCenter | Anchor::TOP_CENTER |
20+
| Anchor::TopRight | Anchor::TOP_RIGHT |
21+
| Anchor::Custom(value) | Anchor(value) |

0 commit comments

Comments
 (0)