x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

AttachToActor not working

Hi so i'm trying to attach a box to my character. I keep reading that attach AttachToActor is the way to go but i cant use it. When I try to drag a attachtoactor from my box scene component it just doesn't show up. I've also tried attaching from the static mesh but it also doesn't show up. I can only see attach to component.

Any ideas?

Thanks.

Product Version: UE 4.21
Tags:
more ▼

asked Mar 22 '19 at 02:21 PM in Blueprint Scripting

avatar image

OniricMaster
26 2 2 9

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

1 answer: sort voted first

Hi OniricMaster.

That is intended behaviour as the box scene component, is, in fact, a component and not an actor. I don't see a problem using attach a component to an actor as this is essentially what you want to do.

You can always use the GetOwner() function, which will return the components actor reference and attach that instead.

![alt text][1]

actortoactor.png (38.2 kB)
more ▼

answered Mar 22 '19 at 02:30 PM

avatar image

Alekann01
441 4 5 6

(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