snap text on shader
This commit is contained in:
1 parent
5ce6fca275
commit
50ccf7393d
10 files changed
+101
-64
No files matched your search
+2
-2
@@ -42,8 +42,8 @@ impl UiPos {
|
||||
Self::anchor(corner.anchor())
|
||||
}
|
||||
|
||||
pub const fn shift(&mut self, offset: Vec2) {
|
||||
self.offset += offset;
|
||||
pub const fn shift(&mut self, offset: impl const Into<Vec2>) {
|
||||
self.offset += offset.into();
|
||||
}
|
||||
|
||||
pub const fn shifted(mut self, offset: Vec2) -> Self {
|
||||
|
||||
Reference in new issue
Block a user