UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimDataModelNotifyCollector.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "Containers/Set.h"
7#include "Containers/Array.h"
8
10
11namespace UE {
12namespace Anim {
13
14#if WITH_EDITORONLY_DATA
15
19{
21
23 void Handle(EAnimDataModelNotifyType NotifyType)
24 {
25 if (BracketDepth == 0)
26 {
27 Reset();
28 bDataModified = false;
29 }
30
31 NotifyTypes.Add(NotifyType);
32
34 {
36 }
37 else if (NotifyType == EAnimDataModelNotifyType::BracketClosed)
38 {
40 }
41 }
42
44 bool Contains(EAnimDataModelNotifyType NotifyType) const
45 {
46 return NotifyTypes.Find(NotifyType) != nullptr;
47 }
48
51 {
53 {
54 if (NotifyTypes.Find(Notify) != nullptr)
55 {
56 return true;
57 }
58 }
59
60 return false;
61 }
62
64 bool IsWithinBracket() const { return BracketDepth > 0; }
65
67 bool IsNotWithinBracket() const { return BracketDepth == 0; }
68
69 void MarkDataModified() { bDataModified = true; }
70 bool WasDataModified() { return bDataModified; }
71protected:
72 void Reset()
73 {
74 NotifyTypes.Empty();
75 }
76protected:
79 bool bDataModified;
80};
81
82#endif // WITH_EDITORONLY_DATA
83
84} // namespace Anim
85
86} // namespace UE
EAnimDataModelNotifyType
Definition AnimDataNotifications.h:20
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition Array.h:670
@ Contains
Definition AutomationTest.h:160
Definition AdvancedWidgetsModule.cpp:13
@ false
Definition radaudio_common.h:23