Assets/_MolcaSDK/Code/Scripts/UI/
Examples: ColorIDButton, ColorIDButtonGroup, BillboardUI, ProgressBarUI, LanguageDropdown, PasswordField, CodeInputPanel, BatteryStatus, CanvasScaleListener, UIScaleOption.
When to use
Use shared UI widgets when you need reusable, scene-agnostic UI behavior (button states, language selection, billboard labels, progress indicators) without duplicating custom MonoBehaviours per canvas.Inspector setup
- Add widget components under your UI canvas/prefab.
- For language flows, wire
LanguageDropdownand ensure Localization is configured in Global Settings. - For theme-aware buttons, keep ColorID configured on the same object (required by
ColorIDButton).
Code
ColorIDButton and related widgets are script-driven with inspector hooks:
Troubleshooting
- Colors not updating: verify
ColorIDexists on the same object (ColorIDButtonhasRequireComponent). - Language dropdown empty: confirm
LocalizationModule.Languagesis populated andRuntimeManagerfinished initialization. - Widget not reacting in play mode: check
GraphicRaycaster/EventSystem and interactable flags on target widget.
Related
Unity Editor
Canvas with ColorIDButtonGroup or LanguageDropdown selected.
