ドキュメント

Unity Engine


User Manual

Script Reference

Unity Engine


contactFilterCallbacks

Controls if contact filter callbacks will be called. A contact filter callback allows direct control over whether a contact will be created between a pair of shapes. This applies to both triggers and non-triggers but only with Dynamic bodies. These are relatively expensive so disabling them can provide a significant performance benefit. A contact filter callback will call the PhysicsShape.callbackTarget for both shapes involved if they implement PhysicsCallbacks.IContactFilterCallback.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool contactFilterCallbacks { get; set; }