private void MeshManager_meshesChanged(ARMeshesChangedEventArgs obj)
 {
     meshesChanged     = true;
     meshAddedCount   += obj.added.Count;
     meshUpdatedCount += obj.updated.Count;
     meshRemovedCount += obj.removed.Count;
 }
Exemplo n.º 2
0
        private void MeshChangedHandler(ARMeshesChangedEventArgs e)
        {
            if (!_lidarOrMeshToggle.isOn)
            {
                return;
            }

            _meshSender.SendUpdate(e.added, e.updated, e.removed);
        }
Exemplo n.º 3
0
        /// <summary>
        /// When the meshes change, update the scene meshes.
        /// </summary>
        void OnMeshesChanged(ARMeshesChangedEventArgs args)
        {
            if (args.added != null)
            {
                args.added.ForEach(m_BreakupMeshAction);
            }

            if (args.updated != null)
            {
                args.updated.ForEach(m_UpdateMeshAction);
            }

            if (args.removed != null)
            {
                args.removed.ForEach(m_RemoveMeshAction);
            }
        }