Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


autoClearCustom

Controls whether this world's custom draw is automatically cleared each frame. When enabled (the default), custom draw elements with a lifetime of zero are cleared each frame so they must be submitted every frame to remain visible. When disabled, custom draw is retained until PhysicsWorld.ClearDraw is called, so it persists across frames and repaints without being resubmitted.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool autoClearCustom { get; set; }