Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to detect transform change in editor?

I've currently attempted to implement the following methods:

   virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
     virtual void PostEditChangeChainProperty(FPropertyChangedChainEvent& PropertyChangedEvent) override;

This was in an effort to detect when the transform of an actor or component change so I can do some custom snapping (on a hex grid for example) in the editor. But neither of these are firing when I use the in-editor gizmo to move the actor, but fire when I manually edit the values in the details panel.

I've also attempted to use construction scripts since those fire off even when you drag the actor in the editor and not just manual property edits. But doing any location editing in that context in regards to snapping seems impractical due to not being able to detect when a drag is starting or finishing vs just a manual edit in the details panel.

Any idea how to listen in on gizmo interaction or possibly a better approach?

Product Version: UE 4.12
more ▼

asked Jun 17 '16 at 07:50 PM in C++ Programming

avatar image

48 2 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Try overriding PostEditMove and/or AActor:: EditorApplyTranslation, EditorApplyRotation, and EditorApplyScale (all called from UEditorEngine::ApplyDeltaToActor).

Cheers, Michael Noland

more ▼

answered Jun 20 '16 at 07:00 PM

avatar image

Michael Noland STAFF
609 17 11 33

avatar image onealexleft Jun 20 '16 at 11:12 PM

Thanks, that's what I was looking for!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question