Exemplo n.º 1
0
        static internal void DoApply(PEPrefabScript script)
        {
            if (PEPrefs.DebugLevel > 0)
            {
                Debug.Log("DoApply Start");
            }

            script.ApplyChanges(true);

            if (PEPrefs.DebugLevel > 0)
            {
                Debug.Log("DoApply Completed");
            }

            DoAutoSave();
        }
Exemplo n.º 2
0
        static internal void DoApply(PEPrefabScript script)
        {
            if (PEPrefs.DebugLevel > 0)
            {
                Debug.Log("DoApply Start");
            }

            try
            {
                AssetDatabase.StartAssetEditing();
                script.ApplyChanges(true);
            }
            finally
            {
                AssetDatabase.StopAssetEditing();
            }
            if (PEPrefs.DebugLevel > 0)
            {
                Debug.Log("DoApply Completed");
            }

            DoAutoSave();
        }