优化弹窗UI细节
This commit is contained in:
1 parent
eb48d8e845
commit
b2036cd9bc
30 files changed
+7385
-2859
No files matched your search
@@ -7,6 +7,7 @@ export class OrchardComposer implements DialogComposer {
|
||||
group(name: string, parent = this.root): Node {
|
||||
const node = parent.getChildByName(name) ?? new Node(name);
|
||||
node.parent = parent;
|
||||
node.setSiblingIndex(parent.children.length - 1);
|
||||
node.layer = Layers.Enum.UI_2D;
|
||||
node.setPosition(0, 0, 0);
|
||||
node.getComponent(UITransform) ?? node.addComponent(UITransform);
|
||||
|
||||
Reference in new issue
Block a user