Why can't I use an array in my function declaration?
I'm trying to write an event in C++ I can hook into in blueprint, so my C++ code can queue up dialogue and my blueprint HUD display it. Doing this with a single instance of my struct works perfectly:
However, if I try to alter the function dec to accept multiple lines of dialogue in a single call, the compiler throws an error, "'void AHUDManager::DisplayDialogue(const TArray &)': overloaded member function not found in 'AHUDManager'":
That error sounds to me like it thinks I'm overriding an existing function, but AHUDManager inherits directly from AActor, so I know there isn't some kind of weird namespace clash. I don't provide a function definition (since the point is to write an event that blueprint can hook into), and there's nothing named DisplayDialogue elsewhere in my project, so is there an obvious reason why this would be failing?
Follow this question
Once you sign in you will be able to subscribe for any updates here