Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateProxy(PhysicsAABB, PhysicsMask, PhysicsHandle)

Create a space proxy.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public PhysicsSpace.ProxyHandle CreateProxy(PhysicsAABB aabb, PhysicsMask categories, PhysicsHandle userHandle)

Parameters

The AABB the proxy covers.

categories

The categories as a physics mask associated with the proxy. This can be used when querying the space. If not used, it should be PhysicsMask.All.

userHandle

The custom user handle associated with the proxy.

Returns

Type

Description

ProxyHandleThe created proxy handle used to refer to the proxy.