Прочетете на английски Редактиране

Споделяне чрез


IProgressIndicator Interface

Definition

C++
public interface class IProgressIndicator
Derived

Properties

MainTransform

The progress indicator's main transform. You can use this to attach follow scripts or solvers to the indicator.

Message

The message to display during loading.

Progress

Loading progress value from 0 (just started) to 1 (complete)

State

Used to determine whether it's appropriate to use this indicator.

Methods

AwaitTransitionAsync()

Returns after progress indicator completes its opening or closing transition.

CloseAsync()

Closes the progress indicator after loading is finished. Method is async to allow for animation to complete.

CloseImmediate()

Closes the progress indicator immediately. No fade out animation. All gameObjects for the progress indicator are reset to the correct values.

OpenAsync()

Opens the progress indicator before loading begins. Method is async to allow for animation to begin before loading.

Applies to

Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0