modular-avatar/Packages/nadena.dev.modular-avatar/Runtime/Menu/Actions/ControlGroup.cs
bd_ a300622bb2
feat: support unsynced/saved toggles in new menu system (#276)
* chore: add support for synced/saved settings on menu actions

* feat: move action defaults to control group

* chore: finish the control group ui updates

* docs: update tutorial

* docs: update control group documentation

* docs/ui: menu install target UI and docs
2023-04-15 18:11:30 +09:00

16 lines
424 B
C#

using UnityEngine;
namespace nadena.dev.modular_avatar.core
{
[AddComponentMenu("Modular Avatar/MA Control Group")]
public class ControlGroup : ActionController
{
public bool isSynced = true;
public bool isSaved = true;
public ModularAvatarMenuItem defaultValue;
internal override bool isSyncedProp => isSynced;
internal override bool isSavedProp => isSaved;
}
}