Table of Contents
Adding more deconstruct methods to things
public static class DeconstructExt
Inheritance System.Object DeconstructExt
Deconstruct a rectangle
public static void Deconstruct(this Rect rect, out float x, out float y, out float width, out float height);
rect
UnityEngine.Rect
width
System.Single
height
System.Single
For some reason the normal deconstruct isn't accessible in all places?
public static void Deconstruct(this Vector2 vector2, out float x, out float y);
vector2
UnityEngine.Vector2
For some reason the normal deconstruct isn't accessible in all places?
public static void Deconstruct<T1,T2>(this System.Collections.Generic.KeyValuePair<T1,T2> kvp, out T1 t1, out T2 t2);
T1
T2
kvp
System.Collections.Generic.KeyValuePair<T1,T2>
t1
T1
t2
T2