Skip to content

Add synchronous CloseImmediate() functions to IProgressIndicator#10323

Merged
RogPodge merged 4 commits into
microsoft:prerelease/2.8.0from
jonathoncobb:jonathoncobb/progress-indicator-close
May 16, 2022
Merged

Add synchronous CloseImmediate() functions to IProgressIndicator#10323
RogPodge merged 4 commits into
microsoft:prerelease/2.8.0from
jonathoncobb:jonathoncobb/progress-indicator-close

Conversation

@jonathoncobb

Copy link
Copy Markdown
Member

Overview

Some UI in our application cannot be easily deactivated asynchronously. In particular, we determine the visibility of a child window based on if there are any active GameObject children.

Changes

We've added a synchronous CloseImmediate() function to turn the `GameObject off immediately and set the appropriate state.

Some UI in our application cannot be easily deactivated asynchronously. In particular, we determine the visibility of a child window based on if there are any active `GameObject` children.

We've added a synchronous `CloseImmediate()` function to turn the `GameObject off immediately and set the appropriate state.
@keveleigh

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@RogPodge

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@keveleigh keveleigh changed the base branch from main to prerelease/2.8.0 May 16, 2022 18:28
/// <summary>
/// Closes the progress indicator immediately. No fade out animation. All gameObjects for the progress indicator are reset to the correct values.
/// </summary>
void CloseImmediate();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the interface will be a breaking change. Do we feel okay with that for this scenario?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine for this scenario. This component doesn't have a very large scope and it should be easy to implement for users.

@RogPodge RogPodge merged commit 7fb4dba into microsoft:prerelease/2.8.0 May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants