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. 

Editor empty component in case of double C++ inheritance + blueprint inheritance

Hi!

In C++ I have class "Base" which is derived from AActor and contains static mesh component:

 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = Mesh)
 UStaticMeshComponent* ItemMesh;

In constructor:

 ItemMesh = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("ItemMesh"));

Also in C++ I have class "Child" that is derived from class "Base". Then I have created blueprint class "BP_Child" which is derived from class "Child". Right now everything is good and I see properties of static mesh component in blueprint editor.

But when I modified class "Base" and changed ItemMesh class to USkeletalMeshComponent, recompiled project and got back to the editor, I couldn't see any properties anymore. Editor reloading doesn't work. The only way is recreation of the blueprint class "BP_Child". Is this a bug or am I doing something wrong? What should I do to be able to view component properties in inherited blueprint class from double C++ inheritance?

Regards, Ivan

Product Version: UE 4.14
Tags:
more ▼

asked Dec 14 '16 at 02:58 PM in Blueprint Scripting

avatar image

AiVeR
7 3 5

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

1 answer: sort voted first

You most likely need to reparent your blueprint again to that same class e.g. to "Child", that might fix your problem as it seems that your blueprint metadata got corrupted by changing it to SkeletalMesh one..

more ▼

answered Jan 21 '18 at 05:41 PM

avatar image

Vertex Soup
288 4 22 16

(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