Version 3.3.1.2

ResultItemExtensions class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public static class ResultItemExtensions
Inheritance
  • System.Object
  • ResultItemExtensions

Methods

EnableRichText(ref ResultItem)
public static ResultItem EnableRichText(this ref ResultItem resultItem)
Parameters
ResultItem resultItem

Returns
ResultItem

SetSelectionObject(ref ResultItem, Object)
public static ResultItem SetSelectionObject(this ref ResultItem resultItem, Object obj)
Parameters
ResultItem resultItem

UnityEngine.Object obj

Returns
ResultItem

WithButton(ref ResultItem, String, Action)
public static ResultItem WithButton(this ref ResultItem resultItem, string name, Action onClick)
Parameters
ResultItem resultItem

System.String name

System.Action onClick

Returns
ResultItem

WithContextClick(ref ResultItem, Action<GenericMenu>)
public static ResultItem WithContextClick(this ref ResultItem item, Action<GenericMenu> onContextClick)
Parameters
ResultItem item

System.Action<UnityEditor.GenericMenu> onContextClick

Returns
ResultItem

WithContextClick(ref ResultItem, String, Action)
public static ResultItem WithContextClick(this ref ResultItem item, string path, Action onClick)
Parameters
ResultItem item

System.String path

System.Action onClick

Returns
ResultItem

WithContextClick(ref ResultItem, String, Boolean, Action)
public static ResultItem WithContextClick(this ref ResultItem item, string path, bool on, Action onClick)
Parameters
ResultItem item

System.String path

System.Boolean on

System.Action onClick

Returns
ResultItem

WithFix(ref ResultItem, Fix)
public static ResultItem WithFix(this ref ResultItem item, Fix fix)
Parameters
ResultItem item

Fix fix

Returns
ResultItem

WithFix(ref ResultItem, Action, Boolean)
public static ResultItem WithFix(this ref ResultItem item, Action fix, bool offerInInspector = true)
Parameters
ResultItem item

System.Action fix

System.Boolean offerInInspector

Returns
ResultItem

WithFix(ref ResultItem, String, Action, Boolean)
public static ResultItem WithFix(this ref ResultItem item, string title, Action fix, bool offerInInspector = true)
Parameters
ResultItem item

System.String title

System.Action fix

System.Boolean offerInInspector

Returns
ResultItem

WithFix<T>(ref ResultItem, Action<T>, Boolean)
public static ResultItem WithFix<T>(this ref ResultItem item, Action<T> fix, bool offerInInspector = true)
    where T : new()
Parameters
ResultItem item

System.Action<T> fix

System.Boolean offerInInspector

Returns
ResultItem

Type Parameters
T

WithFix<T>(ref ResultItem, String, Action<T>, Boolean)
public static ResultItem WithFix<T>(this ref ResultItem item, string title, Action<T> fix, bool offerInInspector = true)
    where T : new()
Parameters
ResultItem item

System.String title

System.Action<T> fix

System.Boolean offerInInspector

Returns
ResultItem

Type Parameters
T

WithMetaData(ref ResultItem, Object, Attribute[])
public static ResultItem WithMetaData(this ref ResultItem resultItem, object value, params Attribute[] attributes)
Parameters
ResultItem resultItem

System.Object value

System.Attribute[] attributes

Returns
ResultItem

WithMetaData(ref ResultItem, String, Object, Attribute[])
public static ResultItem WithMetaData(this ref ResultItem resultItem, string name, object value, params Attribute[] attributes)
Parameters
ResultItem resultItem

System.String name

System.Object value

System.Attribute[] attributes

Returns
ResultItem

WithSceneGUI(ref ResultItem, Action)
public static ResultItem WithSceneGUI(this ref ResultItem item, Action onSceneGUI)
Parameters
ResultItem item

System.Action onSceneGUI

Returns
ResultItem