Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ClearProxies()

Clear all space proxies. You should no longer use any previously returned PhysicsSpace.ProxyHandle as they may be invalid or direct to the wrong proxy in the future. The space will continue with a similar proxy capacity therefore if full de-allocation is required, the space should be destroyed and a new one created.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public bool ClearProxies()

Returns

Type

Description

boolIf the proxies were destroyed. If the space is invalid, no proxies will be destroyed.