UnityEditor.ASMainWindow.DoDiscardChanges C# (CSharp) Method

DoDiscardChanges() public method

public DoDiscardChanges ( bool lastActionsResult ) : void
lastActionsResult bool
return void
        public void DoDiscardChanges(bool lastActionsResult)
        {
            List<string> list = new List<string>();
            if (false)
            {
                list.AddRange(AssetServer.CollectDeepSelection());
            }
            else
            {
                list.AddRange(AssetServer.GetAllRootGUIDs());
                list.AddRange(AssetServer.CollectAllChildren(AssetServer.GetRootGUID(), AssetServer.GetAllRootGUIDs()));
            }
            if (list.Count == 0)
            {
                list.AddRange(AssetServer.GetAllRootGUIDs());
            }
            AssetServer.SetAfterActionFinishedCallback("ASEditorBackend", "CBReinitOnSuccess");
            AssetServer.DoUpdateWithoutConflictResolutionOnNextTick(list.ToArray());
        }