FinalAction
(
action
)
|
Constructor; takes the callback (typically as an inline function) which is to be invoked on the main thread (for example, using Context.ExecuteOnMainThread(Action)) when this FinalAction is destructed.
Signature
Oculus.Interaction.FinalAction.FinalAction(Action action) Parameters action: Action
The callback to be invoked on the main thread in response to destruction
|
Cancel
()
|
Cancels the FinalAction.
If this is invoked, then the destruction of this instance will no longer invoke the FinalAction's callback.
This is useful in situations where it is no longer necessary to know when the FinalAction is destructed. For example, ValueToClassDecorator<InstanceT, DecorationT> invokes this method when a decoration is manually removed, whereupon the associated FinalAction (which was created to remove the decoration association if the decoration itself is ever destructed) should no longer be called because the association has already been removed.
Signature
void Oculus.Interaction.FinalAction.Cancel() Returns void |