用下述代码,贴文字,但发生形变,有没有大佬有办法 
this.lab.node.active = false;
this.lab.updateRenderData(true);
this.node.getComponent(MeshRenderer).material.setProperty('mainTexture',(this.lab.spriteFrame as any).texture);
testLabelInQuad.zip (1.3 MB)
用下述代码,贴文字,但发生形变,有没有大佬有办法 
this.lab.node.active = false;
this.lab.updateRenderData(true);
this.node.getComponent(MeshRenderer).material.setProperty('mainTexture',(this.lab.spriteFrame as any).texture);
testLabelInQuad.zip (1.3 MB)
let uitrans = this.lab.node.getComponent(UITransform);
if(uitrans.width >uitrans.height)
this.node.setScale(new Vec3(1,1*uitrans.height/uitrans.width,1));
else
this.node.setScale(new Vec3(1*uitrans.width/uitrans.height,1,1));
最后用比例换算了一下
这种是只能显示固定的文字吗
该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。