Navigation
Unreal Engine C++ API Reference > Developer > TraceInsights > Insights > ViewModels > FTimingEventsTrack > GetEvent
References
Module | TraceInsights |
Header | /Engine/Source/Developer/TraceInsights/Public/Insights/ViewModels/TimingEventsTrack.h |
Include | #include "Insights/ViewModels/TimingEventsTrack.h" |
Source | /Engine/Source/Developer/TraceInsights/Private/Insights/ViewModels/TimingEventsTrack.cpp |
virtual const [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< const [ITimingEvent](API\Developer\TraceInsights\Insights\ViewModels\ITimingEvent) > GetEvent ( float InPosX, float InPosY, const [FTimingTrackViewport](API\Developer\TraceInsights\Insights\ViewModels\FTimingTrackViewport) & Viewport ) const
Remarks
Gets the event at a specified position. Leaves the InOutEvent unchanged if no event is found at specified position. The event located at (PosX, PosY) coordinates, if any; nullptr ottherwise.
Parameters
Name | Description |
---|---|
X | The horizontal coordinate of the point tested; in Slate pixels (viewport coordinates). |
Y | The vertical coordinate of the point tested; in Slate pixels (viewport coordinates). |
Viewport | The timing viewport used to transform time in viewport coordinates. |