mirror of
https://github.com/bevyengine/bevy
synced 2024-12-18 17:13:10 +00:00
Updated comment: ZIndex::Local(0) -> ZIndex(0). (#16585)
# Objective
In c5742ff43e
ZIndex::Local() and
ZIndex::Global() were replaced with ZIndex() and GlobalZIndex().
A comment was likely forgotten.
## Solution
- Remove the deprecated "::Local" in the comment.
This commit is contained in:
parent
39842170a5
commit
2309c07e8e
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ fn setup(mut commands: Commands) {
|
|||
commands.spawn(Camera2d);
|
||||
|
||||
// spawn the container with default z-index.
|
||||
// the default z-index value is `ZIndex::Local(0)`.
|
||||
// the default z-index value is `ZIndex(0)`.
|
||||
// because this is a root UI node, using local or global values will do the same thing.
|
||||
commands
|
||||
.spawn(Node {
|
||||
|
|
Loading…
Reference in a new issue