Method CheckTransformStackDepth
CheckTransformStackDepth(Action)
Ensures that the transform stack depth remains balanced before and after the specified action is executed.
public void CheckTransformStackDepth(Action action)
Parameters
actionActionThe action to execute. This action is expected to maintain the balance of the transform stack.
Exceptions
- InvalidOperationException
Thrown if the transform stack depth is unbalanced after the action is executed.