Search Issue Tracker
Fixed in 2018.1.X
Fixed in 2017.1.X, 2017.2.X
Votes
0
Found in
2017.2.0b8
Issue ID
953653
Regression
No
GetComponent<Collider2D>().material does not apply material in runtime when used in Update() method
1. Open project
2. Play 'Not Already Applied' scene
Expected vs Actual: tub shouldn't fall off the box
Note:
• Script that applies material is attached to 'Falling Tub' gameObject
• If 'GetComponent<Collider2D>().sharedMaterial = physicsMaterial2D;' is placed in Start method, it works properly.
Reproduced on: 5.5.4p1, 5.6.3p4, 2017.1.1p3, 2017.2.0f1, 2017.3.0b2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on AudioMixer::GetFMODChannelGroup when entering Play Mode in a specific project
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
- Scene View doesn't select the Canvas when it's clicked with the View Tool
- Transform fields are impossible to edit when Inspector window is resized
Add comment