private static void OnAssetWillDuplicate(string assetPath) { var asset = AssetDatabase.LoadAssetAtPath <UnityEngine.Object>(assetPath); if (marker.IsMarked(asset)) { setReprotectModeAfterEditorUpdate.Reserve(); SetProtectionRepairMode(ProtectionRepairMode.Unprotect); } }
public LabelAndHideFlagProtectionMarker() { delayedInitialize = new EditorDelayedAction(DelayedInitialize, 0); delayedInitialize.Reserve(); }