Version: 2023.2
public int iterationsUsed ;

描述

Returns the number of iterations used when performing a Rigidbody2D.Slide.

This will never exceed the Rigidbody2D.SlideMovement.maxIterations.

Additional resources: Rigidbody2D.Slide and SlideMovement.