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"

Why mobility attribute hidden in some actors and components?

Probably a lame question, but still I'm wondering why.

I tried to attach my ACableActor instance to a socket on a character and it said:

"Cannot attach static actor X to dynamic actor Y"

But the mobility option in the details panel for this CableActor or the CableComponent inside it is not displayed, so I can't make it moveable. It inherits AActor. The component inherits a UMeshComponent.

I create an empty actor, add a Cable component to it, and I can't see the option either, but since the parent actor is moveable, it says it is moveable too and I can attach it to a socket...

What makes this parameter appear? Why it's not displayed sometimes? How to make it visible?

[EDIT]

After a while investigating I found out this:

ACableActor inherits AActor. Actors don't have a mobility attribute. It's there because It's taken from the root component's transform, so it contains the same setting you use in the root component.

The mobility attribute starts in the USceneComponent type. UCableComponent inherits from it (USceneComponent -> UPrimitiveComponent -> UMeshComponent -> UCableComponent). But in the way, on UPrimitiveComponent class header you can see:

 UCLASS(abstract, HideCategories=(Mobility), ShowCategories=(PhysicsVolume))

So the mobility category is hidden from now on.

So I wonder WHY they do this, what's the purpose of this? And why would they create a Cable Component that creates a physics rope that can't be attached to a socket which is a very typical thing to do on a game?

How do people work with this?

Product Version: UE 4.18
Tags:
more ▼

asked Feb 05 '18 at 05:16 PM in C++ Programming

avatar image

darkgaze
179 6 13 17

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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