UGameplayTask::AddRequiredResource

Marks this task as requiring specified resource which has a number of consequences, like task not being able to run if the resource is already taken.

Windows
MacOS
Linux

References

Module

GameplayTasks

Header

/Engine/Source/Runtime/GameplayTasks/Classes/GameplayTask.h

Include

#include "GameplayTask.h"

Source

/Engine/Source/Runtime/GameplayTasks/Private/GameplayTask.cpp

Syntax

void AddRequiredResource
(
    TSubclassOf < UGameplayTaskResource > RequiredResource
)

Remarks

Marks this task as requiring specified resource which has a number of consequences, like task not being able to run if the resource is already taken.

: Calling this function makes sense only until the task is being passed over to the GameplayTasksComponent. Once that's that resources data is consumed and further changes won't get applied

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback