Dear Omniverse Support Team,
I have explicitly identified a potential bug or limitation in Omniverse Kit SDK 107’s UI API concerning dynamic updates of widget background colors.
Issue:
When dynamically changing the background_color style property of ui.Rectangle widgets at runtime, the color changes do not visually update in the UI. The rectangle retains its initial color despite explicit style reassignment.
Steps to Reproduce:
Create a ui.Rectangle with an initial background color style.
Dynamically change its background_color via the widget’s .style property at runtime.
Observe that the UI rectangle does not visually reflect the updated color.
Current Workarounds Attempted:
Forcing UI rebuild (frame.rebuild()): Effective but inefficient.
Using unique style_type_name_override: Ineffective at runtime.
Recreating widget explicitly upon state changes: Effective but adds complexity.
Impact:
This limitation significantly impacts the clarity and real-time responsiveness of UI components dependent on visual state indicators.
Request:
We would greatly appreciate explicit confirmation if this behavior is known, any recommended solutions, or if future SDK versions address this limitation.
Thank you very much for your prompt attention and assistance. We look forward to your feedback.
Warm regards,
chris wirth
Creative Labs AI Team