Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsCallbacks.ContactCallbackTargets

Contains all the contact callback targets returned from PhysicsWorld.GetContactCallbackTargets.
Read time 1 minuteLast updated 9 days ago

Definition

public readonly struct PhysicsCallbacks.ContactCallbackTargets : IDisposable

Properties

Property

Description

BeginCallbackTargetsThe begin targets.
EndCallbackTargetsThe end targets.

Methods

Method

Description

DisposeDispose of any allocated memory. This must be called if any targets are returned otherwise memory leaks will occur.

Structs

Struct

Description

PhysicsCallbacks.ContactCallbackTargets.ContactBeginTargetContact begin event target for callbacks.
PhysicsCallbacks.ContactCallbackTargets.ContactEndTargetContact end event target for callbacks.