MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Capture

Method Capture

Source/PCGExtendedToolkit/Private/Data/PCGExProxyData.cpp:24–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 bool FProxyDescriptor::Capture(FPCGExContext* InContext, const FString& Path, const ESource InSource, const bool bThrowError)
25 {
26 const TSharedPtr<FFacade> InFacade = DataFacade.Pin();
27 check(InFacade);
28
29 bool bValid = true;
30
31 Selector = FPCGAttributePropertyInputSelector();
32 Selector.Update(Path);
33
34 Source = InSource;
35
36 if (!PCGEx::TryGetTypeAndSource(Selector, InFacade, RealType, Source))
37 {
38 if (bThrowError) { PCGEX_LOG_INVALID_SELECTOR_C(InContext, Attribute, Selector) }
39 bValid = false;
40 }
41
42 Selector = Selector.CopyAndFixLast(InFacade->Source->GetData(Source));
43
44 UpdateSubSelection();
45 WorkingType = SubSelection.GetSubType(RealType);
46
47 return bValid;
48 }
49
50 bool FProxyDescriptor::Capture(FPCGExContext* InContext, const FPCGAttributePropertyInputSelector& InSelector, const ESource InSource, const bool bThrowError)
51 {

Callers 2

PrepareForDataMethod · 0.80
ProcessMethod · 0.80

Calls 4

checkFunction · 0.85
TryGetTypeAndSourceFunction · 0.85
GetSubTypeMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected