本文整理汇总了C#中UnityEngine.Rect.Last方法的典型用法代码示例。如果您正苦于以下问题:C# Rect.Last方法的具体用法?C# Rect.Last怎么用?C# Rect.Last使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnityEngine.Rect
的用法示例。
在下文中一共展示了Rect.Last方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LayoutWithStripsOnRightSideOneScrollBar
private void LayoutWithStripsOnRightSideOneScrollBar(List<AudioMixerGroupController> allGroups, Dictionary<AudioMixerEffectController, AudioMixerGroupController> effectMap)
{
SplitterState horizontalSplitter = this.m_LayoutStripsOnRight.m_HorizontalSplitter;
SplitterGUILayout.BeginHorizontalSplit(horizontalSplitter, new GUILayoutOption[]
{
GUILayout.ExpandWidth(true),
GUILayout.ExpandHeight(true)
});
SplitterGUILayout.EndHorizontalSplit();
float num = (float)horizontalSplitter.realSizes[0];
float width = base.position.width - num;
Rect rect = new Rect(0f, 17f, num, base.position.height - 17f);
Rect rect2 = new Rect(num, 17f, width, rect.height);
if (EditorGUIUtility.isProSkin)
{
EditorGUI.DrawRect(rect, (!EditorGUIUtility.isProSkin) ? new Color(0.6f, 0.6f, 0.6f, 0f) : new Color(0.19f, 0.19f, 0.19f));
}
float num2 = 10f;
Rect[] array = new Rect[this.m_SectionOrder.Length];
float num3 = 0f;
for (int i = 0; i < this.m_SectionOrder.Length; i++)
{
num3 += num2;
if (i > 0)
{
num3 += array[i - 1].height;
}
array[i] = new Rect(0f, num3, rect.width, this.GetHeightOfSection(this.m_SectionOrder[i]));
Rect[] expr_155_cp_0 = array;
int expr_155_cp_1 = i;
expr_155_cp_0[expr_155_cp_1].x = expr_155_cp_0[expr_155_cp_1].x + 4f;
Rect[] expr_16F_cp_0 = array;
int expr_16F_cp_1 = i;
expr_16F_cp_0[expr_16F_cp_1].width = expr_16F_cp_0[expr_16F_cp_1].width - 8f;
}
Rect viewRect = new Rect(0f, 0f, 1f, array.Last<Rect>().yMax);
if (viewRect.height > rect.height)
{
for (int j = 0; j < array.Length; j++)
{
Rect[] expr_1DF_cp_0 = array;
int expr_1DF_cp_1 = j;
expr_1DF_cp_0[expr_1DF_cp_1].width = expr_1DF_cp_0[expr_1DF_cp_1].width - 14f;
}
}
this.m_SectionsScrollPosition = GUI.BeginScrollView(rect, this.m_SectionsScrollPosition, viewRect);
this.DoSections(rect, array, this.m_SectionOrder);
GUI.EndScrollView();
this.m_ChannelStripView.OnGUI(rect2, this.m_ShowReferencedBuses, this.m_ShowBusConnections, this.m_ShowBusConnectionsOfSelection, allGroups, effectMap, this.m_SortGroupsAlphabetically, this.m_ShowDeveloperOverlays, this.m_GroupTree.ScrollToItem);
EditorGUI.DrawRect(new Rect(rect.xMax - 1f, 17f, 1f, base.position.height - 17f), (!EditorGUIUtility.isProSkin) ? new Color(0.6f, 0.6f, 0.6f) : new Color(0.15f, 0.15f, 0.15f));
}