Search Issue Tracker

By Design

Votes

1

Found in

5.3.4p4

Issue ID

792537

Regression

No

Collider.sharedMaterial returns the Instanced material

Physics

-

Steps to reproduce:

1. Open attached project
2. Open scene "DemoScene" and Run it
3. In console, notice "BUG - the shared material SHOULD equal the material we are comparing it to, instead it is an instance. DemoPhysMat (Instance) != DemoPhysMat". This means that Collider.sharedMaterial.Equals(PhysicsMaterial) returned false

Reproduced with: 5.1.4f1, 5.2.4f1, 5.3.4p5, 5.4.0b17

Comments (1)

  1. LordMortis

    May 14, 2016 04:38

    I'm noticing this on 5.4.0b14 on the renderer as well... Quite annoying.

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.