// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#if GT_USE_UGUI
using UnityEditor;
using UnityEditor.UI;
namespace Microsoft.MixedReality.GraphicsTools.Editor
{
///
/// Adds a shortcut to create a configured game object and component from the game object context menu.
///
[CustomEditor(typeof(RectMask2DFast), true)]
[CanEditMultipleObjects]
public class RectMask2DFastInspector : RectMask2DEditor
{
[MenuItem("GameObject/UI/Graphics Tools/Fast Rect Mask")]
private static void CreateCanvasElement(MenuCommand menuCommand)
{
InspectorUtilities.CreateGameObjectFromMenu(menuCommand, true);
}
}
}
#endif // GT_USE_UGUI