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"

Why can't we set the root component in Blueprint?

Hi, I'm trying to set up another collision component that can be used when my Third Person Character goes to a prone state. To make that work I need to change the root component to be the default collision component when my character is standing/walking and the new one when the character is in a prone state (capsule collision component oriented differently) in runtime. AActor defines the method "setRootComponent" and it's protected and not blueprintable. Why isn't it accessible in blueprints like the getter "getRootComponent"()?

Product Version: UE 4.8
more ▼

asked Jun 25 '15 at 08:36 AM in Blueprint Scripting

avatar image

28 7 10 15

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

1 answer: sort voted first

Hi Mate

What you will need to do is make a new a Character BP and put a scene component first, then the rest of you stuff.

That was the Scene is your root component and never needs to be changed.


more ▼

answered Jun 25 '15 at 09:34 AM

avatar image

1.7k 74 38 110

avatar image Nairam Jun 25 '15 at 11:51 AM

Hi, that doesn't work. If I try to drag a new "dummy" scene component over the capsule component (root component) to replace it, it says: "The root component in this Blueprint is inherited an cannot be replaced". What should I do?

avatar image Narghile Jun 25 '15 at 12:32 PM

got it wrong.

add a second or third caps for you stance, then turn it on or off, depending on what you need


avatar image Narghile Jun 25 '15 at 12:36 PM

this might work

alt text


capture.jpg (50.2 kB)
avatar image Nairam Jun 25 '15 at 03:28 PM

Did that work for you? I tried that but, my character keeps falling as soon as I disable the root component capsule, even when I have other collision capsules attached and set collision enabled. Seems that it's only working when done on the root component thats why I would like to swap the root component in blueprint.

(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