Hi
Im using UE 4.4.0
I have created a controller object that extends FTickableGameObject
UCLASS()
class TEST1_API UDateTimeController : public UObject, public FTickableGameObject
{
GENERATED_UCLASS_BODY()
//
// Properties
/** Struct to maintain DateTime state */
UPROPERTY()
FDateTimeState DateTimeInstance;
//
// FTickableGameObject
virtual void Tick(float deltaTime) override;
virtual bool IsTickable() const override;
virtual TStatId GetStatId() const override;
}
I create this object once from my GameState constructor
// Constructe Date and Time Controller for game
m_dateTimeController = NewNamedObject<UDateTimeController>(this, FName("DateTimeControllerStatic"));
However, if I debug the Tick method it gets called by 3 different named instances, namely
Default_DateTimeController
“DateTimeController”_0
DateTimeControllerStatic
This can be right can it?
Doesn’t sound good for performance if every time I implement a Tickable object it is being called multiple times
Thanks in advance