기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


contactEndEvents

Get the contact end events from the last simulation. The PhysicsShape objects returned should be checked to see if they are valid before accessing as they may have been deleted since this event was produced (see PhysicsShape.isValid ). The PhysicsShape.Contact objects returned should be checked to see if they are valid before accessing as they may have been deleted since this event was produced (see isValid ). Any change to the world state can invalidate this data so referring to this data afterwards may cause an unavoidable crash! It is recommended that you immediately extract what information you need and not directly reference the returned data. See PhysicsEvents.ContactEndEvent.
읽는 시간 1분최근 업데이트: 23일 전

Definition

public ReadOnlySpan<PhysicsEvents.ContactEndEvent> contactEndEvents { get; }