get_compare ()(*previous, *i) error on start

I keep on getting a strange error every time I start unity with my project open.

get_compare ()(*previous, *i)

it’s shown as an error, not a warning and yet my project is still able to be compiled. I’m not sure what’s causing it, googling it yields little information related to unity. has anyone experienced this before?

1 Answer

1

This is an assert that comes from deep inside Unity. It’s in some code that is checking that a sorted vector (array) is correctly sorted and contains no duplicates. It’s impossible to guess why you get this. I think what you should do is create a new project, and see if you get the same assert. If not, slowly recreate your project, and look and see what addition causes this problem. It’s possible that recreating your project will not trigger this assert. Otherwise, keep backing up your project, and just ignore the assert.