mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-06 14:45:06 +08:00
d998763fbe
* feat: add material switcher Also refactor everything... * refactor: simplify object curve handling * refactor: additional refactoring and bugfixes * feat: inverse mode * feat: add material setter inspector UI * chore: set material setter icon * chore: fix error on build * chore: adjust order of inverted element
18 lines
575 B
C#
18 lines
575 B
C#
using UnityEngine;
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
|
{
|
|
internal class ControlCondition
|
|
{
|
|
public string Parameter;
|
|
public UnityEngine.Object ControllingObject;
|
|
|
|
public string DebugName;
|
|
public bool IsConstant;
|
|
public float ParameterValueLo, ParameterValueHi, InitialValue;
|
|
public bool InitiallyActive => InitialValue > ParameterValueLo && InitialValue < ParameterValueHi;
|
|
public bool IsConstantActive => InitiallyActive && IsConstant;
|
|
|
|
public GameObject ReferenceObject;
|
|
}
|
|
} |