Search Unity

Looking for examples of using callbacks in Unity physics

Discussion in 'DOTS Physics' started by Mr-Mechanical, Dec 6, 2019.

  1. Mr-Mechanical

    Mr-Mechanical

    Joined:
    May 31, 2015
    Posts:
    507
    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.
     
  2. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    Check the 5. Modify demos, for example ModifyBroadphasePairsBehaviour.cs script. It shows a very simple job being scheduled using callbacks at the PostCreateDispatchPairs phase.
     
    Mr-Mechanical likes this.
unityunity