using UnityEditor;
using UnityEngine;
[CanEditMultipleObjects]
[CustomEditor( typeof( UIWrapContent ), true )]
public sealed class UIWrapContentEditorCustom : UIWrapContentEditor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if ( GUILayout.Button( "Sort Based on Scroll Movement" ) )
{
var self = target as UIWrapContent;
self.SortBasedOnScrollMovement();
}
if ( GUILayout.Button( "Sort Alphabetically" ) )
{
var self = target as UIWrapContent;
self.SortAlphabetically();
}
}
}
関連記事