Version 3.1.1.0

SceneValidationWidget class

Namespace: Sirenix.OdinValidator.Editor
Assembly: Sirenix.OdinValidator.Editor
public static class SceneValidationWidget
Inheritance
  • System.Object
  • SceneValidationWidget

Methods

GetClosestAnchor(Rect, Vector2)
public static SceneValidationWidget.WidgetAnchor GetClosestAnchor(Rect area, Vector2 position)
Parameters
UnityEngine.Rect area

UnityEngine.Vector2 position

GetOffsetForAnchorOfWidgetRectInArea(Rect, Rect, SceneValidationWidget.WidgetAnchor)
public static Vector2 GetOffsetForAnchorOfWidgetRectInArea(Rect area, Rect widget, SceneValidationWidget.WidgetAnchor anchor)
Parameters
UnityEngine.Rect area

UnityEngine.Rect widget

SceneValidationWidget.WidgetAnchor anchor

Returns
UnityEngine.Vector2

InvertAnchor(SceneValidationWidget.WidgetAnchor)
public static SceneValidationWidget.WidgetAnchor InvertAnchor(SceneValidationWidget.WidgetAnchor anchor)
IsAnchorLeft(SceneValidationWidget.WidgetAnchor)
public static bool IsAnchorLeft(SceneValidationWidget.WidgetAnchor anchor)
Returns
System.Boolean

TransformFromToAnchor(Rect, Rect, SceneValidationWidget.WidgetAnchor, SceneValidationWidget.WidgetAnchor)
public static Rect TransformFromToAnchor(Rect area, Rect rect, SceneValidationWidget.WidgetAnchor from, SceneValidationWidget.WidgetAnchor to)
Parameters
UnityEngine.Rect area

UnityEngine.Rect rect

SceneValidationWidget.WidgetAnchor from

SceneValidationWidget.WidgetAnchor to

Returns
UnityEngine.Rect

TransformToAnchor(Rect, Rect, SceneValidationWidget.WidgetAnchor)
public static Rect TransformToAnchor(Rect area, Rect rect, SceneValidationWidget.WidgetAnchor anchor)
Parameters
UnityEngine.Rect area

UnityEngine.Rect rect

SceneValidationWidget.WidgetAnchor anchor

Returns
UnityEngine.Rect

TransformToAnchor(Vector2, SceneValidationWidget.WidgetAnchor)
public static Vector2 TransformToAnchor(Vector2 vector, SceneValidationWidget.WidgetAnchor anchor)
Parameters
UnityEngine.Vector2 vector

SceneValidationWidget.WidgetAnchor anchor

Returns
UnityEngine.Vector2