[SOLVED] Create template on ui get wrong size

 let ui = this.entity.findByName("ui");
    let temp = this.app.assets.get(121256476).resource.instantiate();
    ui.addChild(temp);
    temp.setLocalPosition(0,0,0);

pic

add this script on the root, it will create a template on the 2d screen named “ui”, but this get a very big image…

1038826

Hi @fftidus!

Can you try to add an element component to the parent entity of your template?

You need to set the type of the element component to group.

image

ths ,it works !

1 Like