| | |
| | | if (isCancel || _Index >= _AnimOptList.Count) |
| | | { |
| | | EditorUtility.ClearProgressBar(); |
| | | DesignDebug.Log(string.Format("--优化完成-- 错误数量: {0} 总数量: {1}/{2} 错误信息↓:\n{3}\n----------输出完毕----------", _Errors.Count, _Index, _AnimOptList.Count, string.Join(string.Empty, _Errors.ToArray()))); |
| | | DebugEx.Log(string.Format("--优化完成-- 错误数量: {0} 总数量: {1}/{2} 错误信息↓:\n{3}\n----------输出完毕----------", _Errors.Count, _Index, _AnimOptList.Count, string.Join(string.Empty, _Errors.ToArray()))); |
| | | Resources.UnloadUnusedAssets(); |
| | | GC.Collect(); |
| | | AssetDatabase.SaveAssets(); |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.LogError(e.ToString()); |
| | | DebugEx.LogError(e.ToString()); |
| | | } |
| | | ConfigManager.Instance.SyncLoadConfigs(); |
| | | m_FitterKeys.Clear(); |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | DesignDebug.LogError(e.ToString()); |
| | | DebugEx.LogError(e.ToString()); |
| | | } |
| | | } |
| | | |
| | |
| | | public void AddImportNamespace(string spaceName) |
| | | { |
| | | if (_codeNamespace == null) { |
| | | DesignDebug.Log("_codeNamespace is null"); |
| | | DebugEx.Log("_codeNamespace is null"); |
| | | return; |
| | | } |
| | | _codeNamespace.Imports.Add(new CodeNamespaceImport(spaceName)); |
| | |
| | | public void GenerateClassName(string className, string extendClass = "") |
| | | { |
| | | if (_codeNamespace == null) { |
| | | DesignDebug.Log("_codeNamespace is null"); |
| | | DebugEx.Log("_codeNamespace is null"); |
| | | return; |
| | | } |
| | | _customerClass = new CodeTypeDeclaration(className); |
| | |
| | | }
|
| | | catch (IOException e)
|
| | | {
|
| | | DesignDebug.Log(e.Message);
|
| | | DebugEx.Log(e.Message);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DesignDebug.Log(ex);
|
| | | DebugEx.Log(ex);
|
| | | EditorUtility.ClearProgressBar();
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 76421cbd25c0a2f41a64e24da5c263e3 |
| | | timeCreated: 1534236073 |
| | | licenseType: Pro |
| | | PluginImporter: |
| | | serializedVersion: 2 |
| | | iconMap: {} |
| | | executionOrder: {} |
| | | isPreloaded: 0 |
| | | isOverridable: 0 |
| | | platformData: |
| | | data: |
| | | first: |
| | | Any: |
| | | second: |
| | | enabled: 1 |
| | | settings: {} |
| | | data: |
| | | first: |
| | | Editor: Editor |
| | | second: |
| | | enabled: 0 |
| | | settings: |
| | | DefaultValueInitialized: true |
| | | data: |
| | | first: |
| | | Windows Store Apps: WindowsStoreApps |
| | | second: |
| | | enabled: 0 |
| | | settings: |
| | | CPU: AnyCPU |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |