Add Physics Constraint Component Node causes a warning
Using UE14.3 Preview 2, Windows 10 64-bit.
I'm using the
In UE14.12 this worked fine. In UE14.13 Preview 1, and in Preview 2, the constraint still works, but now I get a warning in the Message Log;
I understand that when I create the constraint, the constrained actors might be null until I set them, but Blueprint doesn't provide me a way of setting those actors as I create the constraint - so I'm stuck with the annoying warning. I'd consider this a bug, unless there is a way of flagging a blueprint to ignore certain warnings.
asked Aug 17 '16 at 03:48 AM in Bug Reports
This warning is now expected behavior, it was added for 4.13.
We do have a feature request in for the ability to disable warning messages like these. It's UE-33395 and you can follow that link to monitor it's progress on the public bug tracker.
answered Aug 17 '16 at 04:58 PM
TJ V ♦♦ STAFF
Workaround for my very specific case where I create a new joint in runtime
had this code:
changed to this:
If you don't mind editing the engine source, the solution is fairly simple to implement. Epic should be doing this in the official source but you can do it yourself until they do.
In "PhysicsConstraintComponent.h" add these lines to the UPhysicsConstraintComponent class.
In "PhysicsConstraintComponent.cpp", add this line to the UPhysicsConstraintComponent constructor (to be safe).
In "PhysicsConstraintComponent.cpp", within the InitializeComponent() function, change the call to InitComponentConstraint() so it is only called if our bool is false.
Compile and run the editor. Now all of your AddPhysicsConstraintComponent nodes will have a new checkbox in their details panel. If you set them all to true then the warnings should go away.
answered Dec 08 '16 at 12:02 AM
getting the same annoying warning -- the constraint works fine, but the error keeps popping up every time i run in PIE
answered Jan 17 '17 at 10:37 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here