【Verse】Widget flashing

Summary

If you repeatedly move a Widget in the verse with RemoveWidget and AddWidget every frame, the Widget will appear to blink in the game. Previously it appeared to move smoothly with the exact same code. This problem has occurred since update 34.20.

verseで毎フレームRemoveWidgetとAddWidgetを繰り返してWidgetを動かすとそのWidgetがゲーム上で点滅して見えるようになりました。以前は全く同じコードでスムーズに移動しているように見えました。この問題は34.20アップデート以降発生しています。

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

Repeat addwidget and removewidget every frame in verse

Expected Result

widget moves smoothly in game

Observed Result

Widget moves with flashing

Platform(s)

PC(Windows11)

Upload an image

Video

It seems to blink when the same text_block, texture_block, color_block, etc. are used around.

I’m also seeing this problem, I’ve tracked it down to the Z order on canvas slots being unpredictable. I’m sure I always relied on the order of a canvas ‘Slots’ array being ordered back-to-front but that appears not to be guaranteed now. To work around this, you need to explicitly set the ‘ZOrder’ member on each canvas slot in cases where you have overlapping elements within a canvas_slot array.

1 Like