ImportAssets() private static méthode

private static ImportAssets ( string paths ) : void
paths string
Résultat void
Exemple #1
0
 internal void ApplyAndImport()
 {
     this.Apply();
     this.m_MightHaveModified = false;
     AssetImporterInspector.ImportAssets(this.GetAssetPaths());
     this.ResetValues();
 }
        public virtual void OnDisable()
        {
            AssetImporter target = this.target as AssetImporter;

            if (Unsupported.IsDestroyScriptableObject((ScriptableObject)this) && this.m_MightHaveModified && ((Object)target != (Object)null && !InternalEditorUtility.ignoreInspectorChanges) && (this.HasModified() && !this.AssetWasUpdated()))
            {
                string message = "Unapplied import settings for '" + target.assetPath + "'";
                if (this.targets.Length > 1)
                {
                    message = "Unapplied import settings for '" + (object)this.targets.Length + "' files";
                }
                if (EditorUtility.DisplayDialog("Unapplied import settings", message, "Apply", "Revert"))
                {
                    this.Apply();
                    this.m_MightHaveModified = false;
                    AssetImporterInspector.ImportAssets(this.GetAssetPaths());
                }
            }
            if (this.m_SerializedObject == null || !this.m_SerializedObject.hasModifiedProperties)
            {
                return;
            }
            this.m_SerializedObject.Cache(this.GetInstanceID());
            this.m_SerializedObject = (SerializedObject)null;
        }