Class UnityGameplayLoadingOverlayView
Unity implementation of the gameplay loading overlay view. Renders a solid black fullscreen background and hosts a slider instance produced by the standard UI slider component factory, so the returned UnityUiSliderComponent is already fully initialized (parameters, actions, label localization, decorations). The overlay drives the bar via UnityEngine.UI.Slider.SetValueWithoutNotify(System.Single) and writes the "NN%" string through the component's built-in value placeholder.
Implements
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Views
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public class UnityGameplayLoadingOverlayView : IGameplayLoadingOverlayView
Constructors
UnityGameplayLoadingOverlayView(Func<UnityUiSliderComponent>)
Creates the overlay presenter. The injected sliderFactory
is responsible for producing a fully initialized slider component through the
normal UI slider factory path so that SetProgress(float) is safe to call
without triggering the persistent onValueChanged handlers.
Declaration
public UnityGameplayLoadingOverlayView(Func<UnityUiSliderComponent> sliderFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<UnityUiSliderComponent> | sliderFactory |
Methods
Hide()
Declaration
public void Hide()
SetProgress(float)
Declaration
public void SetProgress(float normalized)
Parameters
| Type | Name | Description |
|---|---|---|
| float | normalized |
Show()
Declaration
public void Show()