When I make a new blueprint class, I cannot select any primitive component as the base class, until I get to Instanced Static Mesh Component, as you can see here:
Was just wondering why that is.
When I make a new blueprint class, I cannot select any primitive component as the base class, until I get to Instanced Static Mesh Component, as you can see here:
Was just wondering why that is.
I can’t tell you why but the easiest way to solve this, is by creating a C++ class that derives from UStaticMeshComponent and add the UClass meta data.
UCLASS(Blueprintable)
Then you have the most light class to directly derive from. You could of course add this to the engine UStaticMeshComponent class. But having a custom engine just for that is a bit unreasonable
#pragma once
#include "CoreMinimal.h"
#include "Components/StaticMeshComponent.h"
#include "HighlightButtonBase.generated.h"
/**
*
*/
UCLASS(ClassGroup = Rendering, meta = (BlueprintSpawnableComponent), Blueprintable)
class CONFERENCEROOM_API UHighlightButtonBase : public UStaticMeshComponent
{
GENERATED_BODY()
};
The accepted comment is definietly is the easier way to go, but there is a way to derive from the static mesh component without C++ parent class, and no programming required. If you are really desperate, you can do the following just as I did.
Steps:
Optional: You can delete the source project, and code if you want.
Note: This should work on most of the BP-s what arent blueprintable at first.