Skip to content

Commit

Permalink
Merge pull request #125 from zheng-ze/main
Browse files Browse the repository at this point in the history
Fix bug where label is sometimes under sprite for unit selection node
  • Loading branch information
Vanessamae23 authored Apr 21, 2024
2 parents 818f856 + 241eefd commit 33b31b3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class LabelRenderStage: RenderStage {
labelNode.fontSize = labelComponent.fontSize
labelNode.horizontalAlignmentMode = labelComponent.horizontalAlignment
labelNode.verticalAlignmentMode = labelComponent.verticalAlignment
labelNode.zPosition = 100_000
labelNode.name = LabelRenderStage.name

if let subtitle = labelComponent.subtitle {
Expand Down

0 comments on commit 33b31b3

Please sign in to comment.