Esempio n. 1
0
        public override void OnFileChanged()
        {
            UnloadMesh();

            if (MeshImporter.LoadMesh(this, FileName))
            {
                missing = false;
            }

            base.OnFileChanged();
        }
Esempio n. 2
0
        protected override void OnFileNameUpdated()
        {
            Name = Path.GetFileNameWithoutExtension(FileName);

            UnloadMesh();

            if (MeshImporter.LoadMesh(this, FileName))
            {
                missing = false;
            }

            base.OnFileNameUpdated();
        }