This commit is contained in:
SoulliesOfficial
2026-06-09 07:00:19 -04:00
parent 5fc1392747
commit e97646ae48
6 changed files with 111 additions and 60 deletions

View File

@@ -28,6 +28,12 @@ namespace Ichni.Editor
public void Initialize(IBaseElement baseElement, string title, string parameterName,
float min, float max, bool wholeNumbers = false)
{
// [对象池安全] 重置可交互状态
if (slider != null) slider.interactable = true;
if (valueInputField != null) valueInputField.interactable = true;
if (minInputField != null) minInputField.interactable = true;
if (maxInputField != null) maxInputField.interactable = true;
slider.minValue = min;
slider.maxValue = max;
slider.wholeNumbers = wholeNumbers;