Constraint frames issue

Hey guys, duplicating AnswerHub post

I modify constraint frames to make a little bit more complex constraints and encountered some weird behavior. Code is pretty simple, something like this


Constraint->ConstraintInstance.SetRefFrame(EConstraintFrame::Frame2, ReferenceFrameTransform);

It works fine, but only as long as it’s being called in PostInitializeComponents (shall work in constructor too, but it’s not my case), once i move it to PostEditChagneProperty it doesn’t work, it’s being called but doesn’t change anything. I tried calling it before and after Super::PostEditChangeProperty, it totally doesn’t matter. Probably the frames are being updated somewhere else, but i guess I’m missing something here.

So, if anybody had the same issue and solved it, i’d like to hear how :slight_smile:

I get it that constraint frames are being updated according to component location during component initialization, and look’s like there’s not really a good way to set constraint frames in-editor other than create custom constraint component that will suit my needs.

Update: or implement “overriding” for frames, like it’s made for a lot of components and other stuff.