i am having trouble working this out
UDecalComponent* DC;
DC.FadeScreenSize = 1; // DC give error expression need class type
how do i correctly access DC
i am having trouble working this out
UDecalComponent* DC;
DC.FadeScreenSize = 1; // DC give error expression need class type
how do i correctly access DC
DC is a pointer to an UDecalComponent object. Have you created this UDecalComponent? You know, something like this:
DC = CreateDefaultSubobject<UDecalComponent>(TEXT("DecalComponent"));
If you don’t, then you’re trying to access a null pointer.