Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/TimeView/TimeViewPlugin.cpp
TimeTrackElement* TimeViewPlugin::GetElementAt(int32 x, int32 y)
    {
        // for all tracks
        for (const TimeTrack* track : m_tracks)
        {
            // check if the absolute pixel is inside
            TimeTrackElement* result = track->GetElementAt(aznumeric_cast<int32>(x + m_scrollX), y);
            if (result)
            {
                return result;
            }
        }

        return nullptr;
    }
// return the element at a given pixel, or nullptr
return the element at a given pixel, or nullptr
return the element at a given pixel or nullptr
TimeTrackElement* TimeViewPlugin::GetElementAt(int32 x, int32 y)
    {
        for (const TimeTrack* track : m_tracks)
        {
            TimeTrackElement* result = track->GetElementAt(aznumeric_cast<int32>(x + m_scrollX), y);
            if (result)
            {
                return result;
            }
        }
        return nullptr;
    }
TimeTrackElement * TimeViewPlugin :: GetElementAt ( int32 x , int32 y ) { for ( const TimeTrack * track : m_tracks ) { TimeTrackElement * result = track -> GetElementAt ( aznumeric_cast < int32 > ( x + m_scrollX ) , y ) ; if ( result ) { return result ; } } return nullptr ; }
return the element at a given pixel, or nullptr
return the element at a given pixel or nullptr
// for all tracks // check if the absolute pixel is inside