Method NavigateTo
NavigateTo(SequenceContext)
Navigates to a new SequenceContext.
Declaration
public void NavigateTo(SequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
SequenceContext | context | The context to navigate to. |
Remarks
The SequenceContext provided must be a valid navigation destination.
Valid navigation destinations:
- The parent context returned by GetParentContext().
- The root context returned by GetRootContext().
- Any SequenceContext returned by GetChildContexts().
- Any SequenceContext returned by GetBreadcrumbs().
Note: This method cannot be used to change the root SequenceContext. To change the root SequenceContext, use SetTimeline(TimelineAsset).
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The Window associated to this instance has been destroyed. |
ArgumentException | The context is not valid. |
InvalidOperationException | The context is not a valid navigation destination. |