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(); } }
private void GenerateWeights(MeshCache mesh) { Debug.Assert(mesh != null); m_SpriteMeshDataController.spriteMeshData = mesh; m_SpriteMeshDataController.CalculateWeights(m_WeightGenerator, null, kWeightTolerance); m_SpriteMeshDataController.SortTrianglesByDepth(); }
void OnMeshChanged(MeshCache mesh) { SetAnimationEvent(new AnimationEvent() { sub_type = AnimationEventType.MeshChanged, data = "" }); }
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; }
private void OnMeshChanged(MeshCache mesh) { DataModified(); }