Interface IUnityUiRuntime
Unity-layer intention interface for the UI service runtime. Exposes Unity-specific operations that are NOT on Serenity.Ui.Application.Interfaces.Services.IUiService (applying the current font size to a freshly created Unity GameObject subtree). Allows Unity-side consumers (e.g. a menu view) to reach this behavior without casting to the concrete service type.
Namespace: Serenity.Ui.Infrastructure.Interfaces
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public interface IUnityUiRuntime
Methods
ApplyCurrentFontSizeToRoot(GameObject)
Applies the current font size to all TMP_Text components in the specified root GameObject. This should be called when new UI elements are created (like menus) that weren't present when the font size was initially applied at startup.
Declaration
void ApplyCurrentFontSizeToRoot(GameObject root)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | root | The root GameObject to search for TMP_Text components. |