I have a couple questions about best c++ practices:

Sam54123
Tue, 16 Oct 2018 03:55:20 +0000
UI

I’m having trouble getting help on the discord server because of my time zone, so here’s a couple questions regarding c++:

1. If I’m trying to store and pass
around an object that I know
implements an interface, but I don’t
know anything else about, should I
set the variable type to be
IInterfaceName , TScriptInterface,
UObject*, or something else? How
should I call BlueprintNativeEvent
functions and other functions in the
object using the given variable
type?

2. If I want an optional argument for a
UFUNCTION that will default to a
value if un-specified, what should I
do?

3. Does Tick() run before or after
BeginPlay()?

If you know the answer to any of these, help would be much appreciated. Thanks.

4 posts - 1 participant