Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


iterationsUsed

Returns the number of iterations used when performing a Rigidbody2D.Slide.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public int iterationsUsed { readonly get; set; }

Remarks

This will never exceed the Rigidbody2D.SlideMovement.maxIterations.
Additional Resources: Rigidbody2D.Slide and Rigidbody2D.SlideMovement.