Class ConflictResolutionWindow
Popup that displays conflicting assignments and allows the user to accept or cancel the requested changes
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Global Namespace
Syntax
public class ConflictResolutionWindow : MonoBehaviour
Methods
ShowWindow(Transform, IResourceProvider, IEnumerable<FeatureDisplayInfo>, RuleEngineReply, Action<ConflictEventArgs>)
Creates a window showing which features must be deselected in other for the new assignments to be applied. The user can either accept the changes or cancel and keep the current configuration.
Declaration
public static void ShowWindow(Transform root, IResourceProvider resourceProvider, IEnumerable<FeatureDisplayInfo> featureDisplayInfos, RuleEngineReply reply, Action<ConflictEventArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
Transform | root | The transform to which this popup will be attached |
IResourceProvider | resourceProvider | The resource provider |
IEnumerable<FeatureDisplayInfo> | featureDisplayInfos | List of features that will be deselected if the user accepts the new configuration |
RuleEngineReply | reply | List of features that will be deselected if the user accepts the new configuration |
Action<ConflictEventArgs> | callback | Method to call when a button is pressed |