TapCommon-Unity/UI/Scripts/ScrollViewEx/Editor/ScrollViewExEditor.cs

35 lines
1.0 KiB
C#
Raw Normal View History

2022-09-15 16:44:42 +08:00
// -----------------------------------------------------------------------
// <copyright file="ScrollViewExEditor.cs" company="AillieoTech">
// Copyright (c) AillieoTech. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace TapSDK.UI.AillieoTech
{
using UnityEditor;
[CustomEditor(typeof(ScrollViewEx))]
public class ScrollViewExEditor : ScrollViewEditor
{
private SerializedProperty pageSize;
protected override void OnEnable()
{
base.OnEnable();
this.pageSize = this.serializedObject.FindProperty("pageSize");
}
protected override void DrawConfigInfo()
{
base.DrawConfigInfo();
EditorGUILayout.PropertyField(this.pageSize);
}
[MenuItem("GameObject/UI/DynamicScrollViewEx", false, 90)]
private static void AddScrollViewEx(MenuCommand menuCommand)
{
InternalAddScrollView<ScrollViewEx>(menuCommand);
}
}
}