С
Size: a a a
С
С
МЛ
МЛ
МЛ
С
МЛ
С
МЛ
МЛ
МЛ
С
if (RootComponent->GetAttachParent() != nullptr)
{
// Networking for attachments assumes the RootComponent of the AttachParent actor.
// If that's not the case, we can't update this, as the client wouldn't be able to resolve the Component and would detach as a result.
AttachmentReplication.AttachParent = RootComponent->GetAttachParent()->GetAttachmentRootActor();
if (AttachmentReplication.AttachParent != nullptr)
{
AttachmentReplication.LocationOffset = RootComponent->GetRelativeLocation();
AttachmentReplication.RotationOffset = RootComponent->GetRelativeRotation();
AttachmentReplication.RelativeScale3D = RootComponent->GetRelativeScale3D();
AttachmentReplication.AttachComponent = RootComponent->GetAttachParent();
AttachmentReplication.AttachSocket = RootComponent->GetAttachSocketName();
// Technically, the values might have stayed the same, but we'll just assume they've changed.
bWasAttachmentModified = true;
}
}
МЛ
С
МЛ
МЛ
МЛ