Here is a version with a linear color user param exposed
As you can see it’s working in 5.4
only thing in cpp instantiating the niagara comp is this
AGameCharacter::AGameCharacter()
{
PrimaryActorTick.bCanEverTick = true;
// Create components
Camera = CreateDefaultSubobject<UCameraComponent>(TEXT("Camera"));
NComponent = CreateDefaultSubobject<UNiagaraComponent>(TEXT("NComp"));
SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT("SC"));
NComponent->AttachToComponent(SphereComponent, FAttachmentTransformRules::KeepRelativeTransform, FName("NiagaraComponent"));
}
The character test files that use the niagara component (just change the api)
GameCharacter.h (1.0 KB)
GameCharacter.cpp (1.3 KB)
