Hello, can somebody explain to me this part/function of the timeline code.
UEnum* FTimeline::GetTimelineDirectionEnum()
{
static UEnum* TimelineDirectionEnum = NULL;
if(NULL == TimelineDirectionEnum)
{
FName TimelineDirectionEnumName(TEXT(“ETimelineDirection::Forward”));
UEnum::LookupEnumName(TimelineDirectionEnumName, &TimelineDirectionEnum);
check(TimelineDirectionEnum);
}
return TimelineDirectionEnum;
}
This makes no sense to me, how would it work, if it should return play direction of the timeline.