Beispiel #1
0
        private void InitializeMarkers(RawFrameDataView frameData)
        {
            // Fetch all the markers.
            var markerInfo = new List <FrameDataView.MarkerInfo>();

            frameData.GetMarkers(markerInfo);

            // Assign the markers.
            m_Markers = new Dictionary <string, int>(64);
            foreach (var marker in markerInfo)
            {
                if (marker.category == k_Physics2DCategoryId)
                {
                    m_Markers.Add(marker.name, marker.id);
                }
            }
        }