Documentation

Page contents

Updated

Generate PDF from page.

Contact Maker Behavior

Files: CGFContactMakerBehavior.cs

Path: "CGF/Systems/Contact"

Description

Behavior that allows the associated GameObject to send information to the listener that it has been contacted.

Reference

  • Audio – Enables onTriggerStay.
  • Layer – Affected LayersMask. See Common Features / Layer.
  • On Collision Enter – Enables onCollisionEnter.
  • On Collision Stay – Enables onCollisionStay.
  • On Trigger Enter – Enables onTriggerEnter.
  • On Trigger Stay – Enables onTriggerStay.

Use

Add this component to the GameObject that should own the behavior.
Configure the inspector fields listed in Reference and assign the required scene or asset references before entering Play Mode.