Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

PhysicsSpace.ClearProxies

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool ClearProxies();

Returns

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

Description

Clear all space proxies. You should no longer use any previously returned 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.