Set Relative Location: Best Practices

Hi (TJ Ballard :D),

i have followed case

  • a pawn blueprint with a scene component and a camera as a child

  • Most people do this:

29435-1.jpg

But would’nt it be better to choose “Set Relative Location (Camera1)”?
In this case you do not have to plug in the camera1 as target:

29436-2.jpg

Thanks in advance for your reply

Kind regards

Hi sgwave,

As long as it works (which it should because it references the Camera directly) then it will be fine. In rare cases I’ve seen updates to the editor cause these nodes to have errors. In those situations the fix is usually to go back and add a ‘Self’ node to the Target.

As far as performance goes, both ways are about the same. It’s more for organization and blueprint streamlining than anything else.

Cheers,

TJ