FGraphTrack::GetEvent

Gets the event at a specified position.

Unreal Engine C++ API Reference > Developer > TraceInsights > Insights > ViewModels > FGraphTrack

References

   
Module TraceInsights
Header /Engine/Source/Developer/TraceInsights/Public/Insights/ViewModels/GraphTrack.h
Include #include "Insights/ViewModels/GraphTrack.h"
Source /Engine/Source/Developer/TraceInsights/Private/Insights/ViewModels/GraphTrack.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.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library