Search Issue Tracker

Fix In Review for 2022.2.X

Fix In Review for 2021.2.X, 2022.1.X

Votes

1

Found in

2019.4

2019.4.30f1

2020.3

2021.2

2022.1

Issue ID

1386399

Regression

No

A warning appears when a GameObject with a Collider is added to a GameObject with a CompositeCollider2D in Play mode

Physics2D

-

Reproduction steps:
1. Open the user's attached project
2. Open Assets > SampleScene
3. Enter Play Mode
4. Select the "[Testbed]" GameObject
5. In the Inspector enable "Put Into Composite"
6. Select GameObject "Collider" (Composite's child) and observe Inspector

Expected result: No warning message
Actual result: Warning message: "The collider will not function with a composite until there is a CompositeCollider2D on the GameObject that the attached Rigidbody2D is on."

Reproduced with: 2019.4.33f1, 2020.3.24f1, 2021.2.6f1, 2022.1.0b2

  1. Response avatar

    Resolution Note (fix version 2022.2):

    This has been fixed but it is caused by the fact that when enabling a Collider2D, it didn't check to see if there is a new CompositeCollider2D available in the new hierarchy.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.