public LayoutDropdownWindow(SerializedObject so)
{
this.m_AnchorMin = so.FindProperty("m_AnchorMin");
this.m_AnchorMax = so.FindProperty("m_AnchorMax");
this.m_Position = so.FindProperty("m_Position");
this.m_SizeDelta = so.FindProperty("m_SizeDelta");
this.m_Pivot = so.FindProperty("m_Pivot");
this.m_InitValues = new Vector2[so.targetObjects.Length, 4];
for (int i = 0; i < so.targetObjects.Length; i++)
{
RectTransform transform = so.targetObjects[i] as RectTransform;
*(this.m_InitValues[i, 0]) = transform.anchorMin;
*(this.m_InitValues[i, 1]) = transform.anchorMax;
*(this.m_InitValues[i, 2]) = transform.anchoredPosition;
*(this.m_InitValues[i, 3]) = transform.sizeDelta;
}
}