Looking for examples of using callbacks in Unity physics

I’ve been checking out the manual and I’m trying to understand how to create the callback/delegate and how EnqueueCallback functionality works to use the callback.

Thanks, feedback/resources are always helpful.

Check the 5. Modify demos, for example ModifyBroadphasePairsBehaviour.cs script. It shows a very simple job being scheduled using callbacks at the PostCreateDispatchPairs phase.

1 Like