Files
FlaxEngine/Source/Editor/CustomEditors/Elements/IFloatValueEditor.cs
2023-01-10 15:29:37 +01:00

30 lines
769 B
C#

// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using FlaxEngine;
namespace FlaxEditor.CustomEditors.Elements
{
/// <summary>
/// The floating point value editor element.
/// </summary>
[HideInEditor]
public interface IFloatValueEditor
{
/// <summary>
/// Gets or sets the value.
/// </summary>
float Value { get; set; }
/// <summary>
/// Gets a value indicating whether user is using a slider.
/// </summary>
bool IsSliding { get; }
/// <summary>
/// Sets the editor limits from member <see cref="LimitAttribute"/>.
/// </summary>
/// <param name="limit">The limit.</param>
void SetLimits(LimitAttribute limit);
}
}