Announcement

Collapse
No announcement yet.

MoveComponentTo in C++

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MoveComponentTo in C++

    Hi Everyone!! I would like to know if there is a corresponding in C++ for MoveComponentTo blueprint function. Thanks!!

    #2
    Well all blueprint functions are in C++ because they are built in C++. That particular function is UKismetSystemLibrary::MoveComponentTo. It is static so you can call it wherever you have access to that namespace.

    Comment


      #3
      @dzeligman: Thanks for your reply!! Yes, I've used it, but when I did it, there was an issue whit the FLatentActionInfo parameter on the function, ┬┐Do you have an example or know a way to implement it?

      Comment


        #4
        Add something like this:

        FLatentActionInfo info = FLatentActionInfo();
        info.CallbackTarget = this;
        UKismetSystemLibrary::MoveComponentTo(Component, Location, Rotation, bool, bool, time, EMoveComponentAction::Move, info);

        Comment

        Working...
        X