+1
Under Review

RigidbodyConstraints code generation bug?

Jesse Ford 6 days ago • updated by Lazlo Bonin (Lead Developer) 3 days ago 2

These errors show up when I click the 'down' icon on the bolt toolbar.

When I go to the script generated by Bolt 2, the line reads as.

setConstraints.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ | (RigidbodyConstraints)-127;


Iin the graph this is what is there 

Hopefully this isnt something Im doing personally to goof this up since im 'resetting' the rigid in my test game so fast lol.

But heads up on this.

Im temporarily working around this by commenting out the line in the generated script for now.

Bolt Version:
2.0.0.a4
Unity Version:
2018.3.6f1
.NET Version:
4.0
Bolt 2

Somehow my images dont seem to be showing. Ill try the image tags on the reply doh!

Under Review

Hi Jesse, thanks for the report, I'll have a look soon. We had to hack our way in for inspector support with some pseudo-flags enums in Unity and I think this might be related.