/// <summary> Disables the target assets by appending a supernumerary extension (like ".disabled" or ".tmp") to their filenames. </summary>
        private void Disable()
        {
            var cacheInspector = inspector;

            FileUtility.Disable(targets, inspector.Preferences.disabledScriptExtension);

            cacheInspector.RebuildDrawers(ArrayPool <Object> .ZeroSizeArray, true);
            cacheInspector.OnNextLayout(() => cacheInspector.RebuildDrawers(false));
        }
示例#2
0
 /// <summary> Disables the target ScriptableObject asset by appending a supernumerary extension (like ".disabled" or ".tmp") to their filenames. </summary>
 private void Disable()
 {
     FileUtility.Disable(targets, inspector.Preferences.disabledScriptExtension);
 }