Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

PhysicsEvents.WorldDrawResultsEventHandler

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public delegate void WorldDrawResultsEventHandler(PhysicsWorld world, ref DrawResults drawResults);

Parameters

Parameter Description
world The world which was drawn.
drawResults The draw results for the world. These may be invalid i.e. contain no results. This can be quickly checked with PhysicsWorld.DrawResults.isValid.

Description

Event handler for a world draw results event callback. This is only called if the world is currently rendering as specified by PhysicsWorld.renderingMode or if PhysicsCoreSettings2D.alwaysDrawWorlds is true. CAUTION: The world is READ locked during this event so ANY write operation on the world will cause an immediate deadlock.