I am trying to add a new ActorComponent that can be blueprinted. However, everytime i try to change the UCLASS attributes the editor crashes on reload.
Working UCLASS:
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
Broken UCLASS
UCLASS(Blueprintable, BlueprintType, EditInlineNew, ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
Whole class:
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) ) // Works fine
UCLASS(Blueprintable, BlueprintType, EditInlineNew, ClassGroup = (Custom), meta = (BlueprintSpawnableComponent)) //Crashes the editor on hot reload
class SPACETRANSPORT_API UTrainGroupComponent : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UTrainGroupComponent();
protected:
// Called when the game starts
virtual void BeginPlay() override;
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
};