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"

[Closed] Find the name of UPoseableMeshComponent that is subcomponent of AActor in c++

How can I find the name or a pointer to a UPoseableMeshComponent which is a subcomponent of an AActor in a c++ plugin? I know how to find objects by class or name but I have not found a way to find out either for a top label what are the subcomponents it contains or for a subcomponent what is the top level parent object or name. I am creating a slate ui which has a list of selected aactors and now need to find the name or a pointer to the UPoseableMeshComponent or other components of it.

Thanks Lee

Product Version: Not Selected
Tags:
more ▼

asked Mar 03 '16 at 09:13 PM in C++ Programming

avatar image

Answers.Archive STAFF
1.9k 197 306 679

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

The question has been closed Mar 03 '16 at 09:13 PM by Stephen Ellis for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Hi Lee,

You can find a component on an actor using the FindComponentByClass function, for example:

 Actor->FindComponentByClass();

Will return the first UPoseableMeshComponent that it finds on the actor.

Hope that is helpful to you :)

Cheers

Martin

more ▼

answered Mar 03 '16 at 09:13 PM

avatar image

Answers.Archive STAFF
1.9k 197 306 679

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

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question