public void CleanJointConnections()
{
FixedJoint temp = gameObject.GetComponents();
foreach (FixedJoint joint in temp2)
{
Destroy(joint);
}
}
Error message is:
Assets/Ultimate Game Tools/Fracturing/Scripts/FracturedChunk.cs(706,20): error CS0650: Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable’s identifier. To declare a fixed size buffer field, use the fixed keyword before the field type
I have no idea what a rank specifier is. I just want to grab a list of all the fixedJoints on this object and then delete them.
make it work for me please? <3