UMockTask_Log::OnDestroy

End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending.

Unreal Engine C++ API Reference > Developer > AITestSuite > UMockTask_Log

References

   
Module AITestSuite
Header /Engine/Source/Developer/AITestSuite/Classes/MockGameplayTasks.h
Include #include "MockGameplayTasks.h"
Source /Engine/Source/Developer/AITestSuite/Private/MockAI/MockGameplayTasks.cpp
virtual void OnDestroy
(
    bool bInOwnerFinished
)

Remarks

End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending. IMPORTANT! Do NOT call directly! Call EndTask() or TaskOwnerEnded() IMPORTANT! When overriding this function make sure to call Super::OnDestroy(bOwnerFinished) as the last thing, since the function internally marks the task as "Pending Kill", and this may interfere with internal BP mechanics


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library