Tooltip losing content

You are welcome. I have to thank you all :slight_smile:

I don’t need to use clipChildren = false, it will be fixed in next patch, if I got it right?

Thanks for uncovering this. Your contribution is indeed valuable and appreciated. Have a great day,

That’s right, the clipChildren is only needed if you don’t update the version :slight_smile:

2 Likes

I do have another error since update. The _lines property of any textblock of the tooltips (even if i just use one) is getting lost after 5-20 seconds running the game. While the “text”-property is still filled with correct data. When I remove textblocks or linkWithMesh() no error occurs, if that is any hint. Hope you can help me out again :slight_smile: , here is the error I get:

Uncaught TypeError: this._lines is undefined
_renderLines textBlock.ts:566
_draw textBlock.ts:417
_render control.ts:2013
_draw container.ts:503
_render control.ts:2013
_draw container.ts:503
_render control.ts:2013
_draw container.ts:503
_render control.ts:2013
_draw container.ts:503
_render control.ts:2013
_render advancedDynamicTexture.ts:734
_checkUpdate advancedDynamicTexture.ts:694
_renderObserver advancedDynamicTexture.ts:382
notifyObservers observable.ts:364
_renderForCamera scene.ts:3483
_processSubCameras scene.ts:3569
render scene.ts:3832
onFinish game.js:82
_renderFrame engine.ts:1306
_renderLoop engine.ts:1324
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612
_renderLoop engine.ts:1343
QueueNewFrame thinEngine.ts:5886
_queueNewFrame thinEngine.ts:1612

That feels like a different issue altogether, right?

I’ll assign myself and will try finding the time this week to tackle this. Can you reproduce this on the playground?

2 Likes

I will try to reproduce these days. If you want something before, I can give you the current Playground or my Tooltip class, with only one textblock to make it easy.

Edit: The moment I use Grid.addControl(Textblock) the error appears, but when I use Rectangle.addControl(Textblock) it works but i wont be able to use grid. Just tried Stackpanel instead of Grid and it is working… So the Grid seems to be the cause of the error.

1 Like

Without a repro, it is really hard for us to fix. Would be really great if you could share one ?

1 Like

I found a completly acceptable way, without using Rectangle and scaleAnimation. Seems like Container in Container causes some problems on moving meshes, also the alpha of the Textblocks are an issue. You can find alone the alpha issue above. White looks like grey even when you try to corrigize the alpha it wont work.