mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +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
29 lines
804 B
C#
29 lines
804 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace nadena.dev.modular_avatar.core.editor
|
|
{
|
|
internal class AnimatedProperty
|
|
{
|
|
public TargetProp TargetProp { get; }
|
|
public string ControlParam { get; set; }
|
|
|
|
public bool alwaysDeleted;
|
|
public object currentState;
|
|
|
|
// Objects which trigger deletion of this shape key.
|
|
public List<ReactionRule> actionGroups = new List<ReactionRule>();
|
|
|
|
public AnimatedProperty(TargetProp key, float currentState)
|
|
{
|
|
TargetProp = key;
|
|
this.currentState = currentState;
|
|
}
|
|
|
|
public AnimatedProperty(TargetProp key, Object currentState)
|
|
{
|
|
TargetProp = key;
|
|
this.currentState = currentState;
|
|
}
|
|
}
|
|
} |