Class Splashscreen
Class Splashscreen.
Namespace: Unity.Industrial.Forma.Staging
Syntax
public class Splashscreen : MonoBehaviour
Properties
canvasGroup
Gets or sets the canvas group.
Declaration
public CanvasGroup canvasGroup { get; set; }
Property Value
Type | Description |
---|---|
CanvasGroup | The canvas group. |
progressBar
Gets or sets the progress bar.
Declaration
public Slider progressBar { get; set; }
Property Value
Type | Description |
---|---|
Slider | The progress bar. |
progressText
Gets or sets the progress text.
Declaration
public TextMeshProUGUI progressText { get; set; }
Property Value
Type | Description |
---|---|
TextMeshProUGUI | The progress text. |
splashscreenBackground
Gets or sets the splashscreen background.
Declaration
public Image splashscreenBackground { get; set; }
Property Value
Type | Description |
---|---|
Image | The splashscreen background. |
splashscreenCanvasGroup
Gets or sets the splashscreen canvas group.
Declaration
public CanvasGroup splashscreenCanvasGroup { get; set; }
Property Value
Type | Description |
---|---|
CanvasGroup | The splashscreen canvas group. |
splashscreenImage
Gets or sets the splashscreen image.
Declaration
public Sprite splashscreenImage { get; set; }
Property Value
Type | Description |
---|---|
Sprite | The splashscreen image. |
splashscreenTitle
Gets or sets the splashscreen title.
Declaration
public TextMeshProUGUI splashscreenTitle { get; set; }
Property Value
Type | Description |
---|---|
TextMeshProUGUI | The splashscreen title. |
transitionImage
Gets or sets the transition image.
Declaration
public Sprite transitionImage { get; set; }
Property Value
Type | Description |
---|---|
Sprite | The transition image. |
Methods
SetProgress(Single)
Update the progress displayed by the progress bar.
Declaration
public void SetProgress(float progress)
Parameters
Type | Name | Description |
---|---|---|
Single | progress | Updated progress |
SetProgressText(String)
Update the progress text displayed.
Declaration
public void SetProgressText(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Updated text |