void OnGUI() { GUILayout.BeginHorizontal(GUILayout.Width(this.position.width)); { sviewpos = EditorGUILayout.BeginScrollView(sviewpos, GUILayout.Width(hslider * this.position.width)); OnGUIPuppetSelectPanel(this.position.width - 30); CLGCInEditor.Layout_DrawSeparator(new Color(0, 0, 0, 0.5f)); OnGUIPuppetAnimSelectPanel(this.position.width - 30); EditorGUILayout.EndScrollView(); } CLGCInEditor.Layout_DrawSeparatorV(new Color(0, 0, 0, 0.5f)); { sviewpos2 = EditorGUILayout.BeginScrollView(sviewpos2, GUILayout.Width(hslider * this.position.width)); OnGUIPlayerPanel(this.position.width); EditorGUILayout.EndScrollView(); } GUILayout.EndHorizontal(); }
void OnGUI() { hslider = GUILayout.HorizontalSlider(hslider, 0.1f, 0.9f, GUILayout.MinWidth(this.position.width), GUILayout.Height(20)); GUILayout.BeginHorizontal(GUILayout.Width(this.position.width)); { sviewpos = EditorGUILayout.BeginScrollView(sviewpos, GUILayout.Width(hslider * this.position.width)); OnGUIAtlasSelectPanel(this.position.width - 30); CLGCInEditor.Layout_DrawSeparator(new Color(0, 0, 0, 0.5f)); OnGUIPuppetAnimSelectPanel(this.position.width - 30); EditorGUILayout.EndScrollView(); } CLGCInEditor.Layout_DrawSeparatorV(new Color(0, 0, 0, 0.5f)); { var width = this.position.width * (1 - hslider) - 5; sviewpos2 = GUILayout.BeginScrollView(sviewpos2, GUILayout.Width(width)); OnGUIPlayerPanel(width); GUILayout.EndScrollView(); } GUILayout.EndHorizontal(); }