Skip to content

Event on view mode changed #122

Answered by raingodttv
raingodttv asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so this is what I did to ALSBaseCharacter

In header file, I changed the existing OnViewModeChanged function to;
UFUNCTION(BlueprintCallable, BlueprintNativeEvent,Category="ALS|State")
void OnViewModeChanged(EALSViewMode PreviousViewMode);

in the CPP, I changed the signature of OnViewModeChanged to;
void AALSBaseCharacter::OnViewModeChanged_Implementation(const EALSViewMode PreviousViewMode)

Then in my BP, I then use the OnvViewModeChanged event, call parent implementation and then performed my custom bp stuff.

Seems to be working, not sure if this is the correct way to implement this!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ameaninglessname
Comment options

Answer selected by dyanikoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants