2024-08-05 21:50:35 -07:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
2024-08-04 19:31:43 -07:00
|
|
|
|
{
|
2024-08-05 21:50:35 -07:00
|
|
|
|
internal class ControlCondition
|
2024-08-04 19:31:43 -07:00
|
|
|
|
{
|
2024-08-10 18:03:50 -07:00
|
|
|
|
public string Parameter;
|
2024-08-25 20:19:04 -07:00
|
|
|
|
public UnityEngine.Object DebugReference;
|
2024-08-10 18:03:50 -07:00
|
|
|
|
|
|
|
|
|
public string DebugName;
|
2024-08-04 19:31:43 -07:00
|
|
|
|
public bool IsConstant;
|
|
|
|
|
public float ParameterValueLo, ParameterValueHi, InitialValue;
|
|
|
|
|
public bool InitiallyActive => InitialValue > ParameterValueLo && InitialValue < ParameterValueHi;
|
2024-08-05 21:50:35 -07:00
|
|
|
|
public bool IsConstantActive => InitiallyActive && IsConstant;
|
|
|
|
|
|
|
|
|
|
public GameObject ReferenceObject;
|
2024-08-04 19:31:43 -07:00
|
|
|
|
}
|
|
|
|
|
}
|