Class CanvasViewExtensions
Canvas view extension methods.
Inheritance
System.Object
CanvasViewExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Pelican7.UIGraph
Assembly: UI Graph API Documentation Project.dll
Syntax
public static class CanvasViewExtensions
Methods
ScreenPositionToLocalPosition(CanvasView, Vector2)
Convert screenPosition
to a local position within view
.
Declaration
public static Vector2 ScreenPositionToLocalPosition(this CanvasView view, Vector2 screenPosition)
Parameters
Type | Name | Description |
---|---|---|
CanvasView | view | |
UnityEngine.Vector2 | screenPosition |
Returns
Type | Description |
---|---|
UnityEngine.Vector2 |
ScreenPositionToNormalizedLocalPosition(CanvasView, Vector2)
Convert screenPosition
to a normalized local position within view
.
Declaration
public static Vector2 ScreenPositionToNormalizedLocalPosition(this CanvasView view, Vector2 screenPosition)
Parameters
Type | Name | Description |
---|---|---|
CanvasView | view | |
UnityEngine.Vector2 | screenPosition |
Returns
Type | Description |
---|---|
UnityEngine.Vector2 |