NLDClient-yudde/ProjectNLD/Assets/Editor/ScrollView/PhxhScrollViewExEditor.cs

37 lines
1.0 KiB
C#

// -----------------------------------------------------------------------
// <copyright file="ScrollViewExEditor.cs" company="AillieoTech">
// Copyright (c) AillieoTech. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace Framework
{
using UnityEditor;
[CustomEditor(typeof(PhxhScrollViewEx))]
public class PhxhScrollViewExEditor : PhxhScrollViewEditor
{
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<PhxhScrollViewEx>(menuCommand);
}
}
}