Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetProxyCategories(ProxyHandle, PhysicsMask)

Set the proxy categories. This can be an expensive operation as all ancestors need to be recalculated.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void SetProxyCategories(PhysicsSpace.ProxyHandle proxyHandle, PhysicsMask categories)

Parameters

proxyHandle

The proxy to set.

categories

The categories as a physics mask to set.