unreal engine specific stuff Flashcards
(2 cards)
1
Q
how to expose c++ variable in the editor
A
add UPROPERTY(EditAnywhere) above it (IN THE .H FILE)
2
Q
UFUNCTION(___)
1. What does this do?
2. What are the three different things you can fill in the blank with, and what do each of them do?
A
- It exposes the below function to the editor
- BlueprintCallable – implemented in the corresponding .cpp file
BlueprintImplementableEvent – has no corresponding cpp implementation, is implemented in a blueprint
BlueprintNativeEvent – has a default implementation in cpp, but can be overwritten via blueprint