Assertion failed on expression: 'effector->GetUseColliderMask ()'

I have a Platform effector, when setting it to use collider mask, I get the following console warning when it collides (also has rigidbody)

Assertion failed on expression: 'effector->GetUseColliderMask ()'

Is there a way to suppress this from the console?

Unity 5.5.0f3

There’s a bug report for this, it’s being looked at.

thanks for the reply @MelvMay
We can’t upgrade from 5.5.0f3 so is there a way to suppress this warning?

If you cannot use a 5.5 patch release then I cannot get a bug fix to you. It’s currently being processed for 2017.1b, 5.6 & 5.5 patches.

The only alternative is to not use the effector collider mask which is where the assert is coming from.

it’s a 2D platformer so not using the effector would be a big step.

I guess we’ll just live with the warning for now if there’s no way to use ignores (like #pragma warning disable 0168 for example

I’ll have to see if the next patch is compatible… target is multiplatform.

It was released to 5.5.3 patch 4 due for release on 17th May.

I’d need to check but an alternate is to not use the effector collider mask but instead use the collision layer matrix. I’d need to check though whether that code-path avoids the assert.

Hi was this patched to 5.6.1f1?

I just updated and the alert is still present.

effector collider mask usage is very handy, I can figure a way to use collision layer matrix but it may take some time.

Yes, this was fixed in all versions. I cannot duplicate the issue here on 5.5.3p4 or 5.6.1p4.

If you’re seeing it, can you quick submit a bug report and post me the number? Alternately give me a link to a project so I can test it here?