I’m trying to create a popup window to show image that match with the image of the object that user interact with. TPS Template test - PLAYCANVAS
i’ve tried set
var textureAsset = this.app.assets.find(this.entity.render.material._diffuseMap.name); this.artwork.element.width = textureAsset._resources.width; this.artwork.element.height = textureAsset._resources.height;
but if i set width and height, the UI didn’t appear although the width, height is set and the entity is enabled but still didn’t appear. can anyone help?