private void MeshChanged(MeshCache mesh)
        {
            var meshPreview = mesh.sprite.GetMeshPreview();

            Debug.Assert(meshPreview != null);
            meshPreview.SetMeshDirty();
        }
 private void OnMeshChanged(MeshCache mesh)
 {
     if (m_Model.view.visible)
     {
         m_Model.view.OnMeshChanged();
     }
 }
示例#3
0
        private void GenerateWeights(MeshCache mesh)
        {
            Debug.Assert(mesh != null);

            m_SpriteMeshDataController.spriteMeshData = mesh;
            m_SpriteMeshDataController.CalculateWeights(m_WeightGenerator, null, kWeightTolerance);
            m_SpriteMeshDataController.SortTrianglesByDepth();
        }
示例#4
0
 void OnMeshChanged(MeshCache mesh)
 {
     SetAnimationEvent(new AnimationEvent()
     {
         sub_type = AnimationEventType.MeshChanged,
         data     = ""
     });
 }
示例#5
0
        internal void SetupSprite(SpriteCache sprite)
        {
            var mesh = sprite.GetMesh();

            if (m_Mesh != mesh && selection.Count > 0)
            {
                selection.Clear();
            }

            m_Mesh = mesh;
            m_SpriteMeshController.spriteMeshData = m_Mesh;
        }
示例#6
0
 private void OnMeshChanged(MeshCache mesh)
 {
     DataModified();
 }