StaticMeshComponent in C++ inherited Blueprint class Not Showing up as Normal Blueprint class

I have created a C++ class based on Actor named MyBaseClass. It has a SceneComponent and StaticMeshComponent in it. I then derived a Blueprint class from MyBaseClass and named it MyBaseClass_BP. Then I created a Blueprint class named My_Pure_BP_Class based on Actor and added SceneComponent and StaticMeshComponent to it. Here are my Questions

  1. The SceneComponent and StaticMeshComponent are showing up differently in MyBaseClass_BP and My_Pure_BP_Class. I don’t understand why is this so?
  2. StaticMeshComponent of My_Pure_BP_Class is having events section where I can directly create events by clicking on the big green button, but MyBaseClass_BP doesn’t have that.

What am I missing?

Here is the code:

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyBaseClass.generated.h"

class MYPROJECT_API AMyBaseClass : public AActor
	// Sets default values for this actor's properties

	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Custom")
	class USceneComponent* MyRootComponent;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Custom")
	class UStaticMeshComponent* MyStaticMeshComponent;


#include "MyBaseClass.h"
#include "Components/StaticMeshComponent.h"
#include "Components/SceneComponent.h"

// Sets default values
 	// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = false;

	MyRootComponent = CreateDefaultSubobject<USceneComponent>(TEXT("My Root"));
	RootComponent = MyRootComponent;

	MyStaticMeshComponent = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("My Static Mesh"));

// Called when the game starts or when spawned
void AMyBaseClass::BeginPlay()

Images of MyBaseClass_BP and My_Pure_BP_Class are also attached.



My_Pure_Base_Class_BP Here is the Events Section which I was talking about. This is missing in MyBaseClass_BP

Another Screenshot of MyBaseClass_BP

Hey there, you need to set all of the components to visible anywhere and not editanywhere :slight_smile:

Thanks Dude… It worked.

Good to know :slight_smile: