I was following along with the course just fine right up until declaring the unlocking tag in the header, instead of manually typing a string in my ActorHasTag()
function.
This is the current code I’m using to declare my variable.
private:
UPROPERTY(EditAnywhere)
FName AcceptableTag;
However, for me the it is not showing up as editable variable in the trigger component.
I have tried:
- Restarting the editor
- Refreshing the Visual Studio Code project
- Generating Visual Studio Project files using File Explorer
- Deleting and re-adding the trigger to my Blueprint or even adding it to a random Actor instead of a blueprint
- Recompiled without using Live Coding, recompiled manually through Visual Studio Code
- Assigning my variable a value in the header file
I have included my files for the trigger component here on github.
Does anyone know why it’s not working? I have spent 2 hours trying everything and scouring the internet for possible causes of this issue, yet I don’t seem to find an answer.