修复
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user