Class ValidatorWindow
- Namespace
- TDMaker.Editor
- Assembly
- TDMaker.Editor.dll
Lists ProjectValidator issues with filters; click to select, double-click to open the right tool.
public sealed class ValidatorWindow : EditorWindow
- Inheritance
-
ObjectScriptableObjectEditorWindowValidatorWindow
- Inherited Members
-
EditorWindow.focusedWindowChangedEditorWindow.BeginWindows()EditorWindow.EndWindows()EditorWindow.ShowNotification(GUIContent)EditorWindow.RemoveNotification()EditorWindow.ShowTab()EditorWindow.Focus()EditorWindow.ShowUtility()EditorWindow.ShowPopup()EditorWindow.ShowModalUtility()EditorWindow.ShowAsDropDown(Rect, Vector2)EditorWindow.Show()EditorWindow.ShowAuxWindow()EditorWindow.ShowModal()EditorWindow.GetWindow<T>()EditorWindow.HasOpenInstances<T>()EditorWindow.FocusWindowIfItsOpen<T>()EditorWindow.GetWindowWithRect<T>(Rect)EditorWindow.SaveChanges()EditorWindow.DiscardChanges()EditorWindow.Close()EditorWindow.Repaint()EditorWindow.SendEvent(Event)EditorWindow.GetExtraPaneTypes()EditorWindow.dataModeControllerEditorWindow.rootVisualElementEditorWindow.overlayCanvasEditorWindow.wantsMouseMoveEditorWindow.wantsMouseEnterLeaveWindowEditorWindow.wantsLessLayoutEventsEditorWindow.autoRepaintOnSceneChangeEditorWindow.maximizedEditorWindow.hasFocusEditorWindow.dockedEditorWindow.focusedWindowEditorWindow.mouseOverWindowEditorWindow.hasUnsavedChangesEditorWindow.saveChangesMessageEditorWindow.minSizeEditorWindow.maxSizeEditorWindow.titleEditorWindow.titleContentEditorWindow.depthBufferBitsEditorWindow.antiAliasEditorWindow.positionEditorWindow.windowFocusChangedScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.FindObjectsByType<T>()Object.FindObjectsByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Constructors
ValidatorWindow()
public ValidatorWindow()
Methods
BesideRect(Rect, Vector2, Rect)
A rect of size beside owner inside screen: right, else left, else below.
public static Rect BesideRect(Rect owner, Vector2 size, Rect screen)
Parameters
ownerRectsizeVector2screenRect
Returns
- Rect
Open(bool)
Opens the validator; optionally runs a fresh scan.
public static ValidatorWindow Open(bool run)
Parameters
runbool
Returns
OpenBeside(EditorWindow)
Opens the validator as a floating window next to owner (right side, or left when there is no room) so it
does not cover it, runs a scan and gives the focus back to the owner. A docked validator stays where it is.
public static ValidatorWindow OpenBeside(EditorWindow owner)
Parameters
ownerEditorWindow
Returns
RunBatch()
Headless entry point for -executeMethod: logs every issue.
public static void RunBatch()
ShowWindow()
Opens the validator and runs it.
[MenuItem("Tools/2D Tower Defense Maker/Validate Project", priority = 30)]
public static void ShowWindow()
Summary(List<ValidationIssue>, int, out IssueSeverity)
A short text of a scan: counts per severity and the first lines problems.
public static string Summary(List<ValidationIssue> found, int lines, out IssueSeverity worst)
Parameters
foundList<ValidationIssue>linesintworstIssueSeverity