更新
This commit is contained in:
@@ -17,6 +17,9 @@ namespace Ichni.Editor
|
||||
|
||||
public override void Initialize(IBaseElement baseElement, string title, string parameterName)
|
||||
{
|
||||
// 精确重置可交互状态,防止从对象池取回到被禁用的废弃输入框
|
||||
if (inputField != null) inputField.interactable = true;
|
||||
|
||||
// [对象池安全]
|
||||
inputField.onEndEdit.RemoveListener(OnEndEditNode);
|
||||
inputField.onSelect.RemoveListener(OnSelectNode);
|
||||
|
||||
@@ -20,6 +20,10 @@ namespace Ichni.Editor
|
||||
|
||||
public override void Initialize(IBaseElement baseElement, string title, string parameterName)
|
||||
{
|
||||
// 精确重置可交互状态
|
||||
if (inputFieldX != null) inputFieldX.interactable = true;
|
||||
if (inputFieldY != null) inputFieldY.interactable = true;
|
||||
|
||||
base.Initialize(baseElement, title, parameterName);
|
||||
if (parameterName != string.Empty)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,11 @@ namespace Ichni.Editor
|
||||
|
||||
public override void Initialize(IBaseElement baseElement, string title, string parameterName)
|
||||
{
|
||||
// 精确重置可交互状态
|
||||
if (inputFieldX != null) inputFieldX.interactable = true;
|
||||
if (inputFieldY != null) inputFieldY.interactable = true;
|
||||
if (inputFieldZ != null) inputFieldZ.interactable = true;
|
||||
|
||||
base.Initialize(baseElement, title, parameterName);
|
||||
if (parameterName != string.Empty)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user