mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +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
26 lines
679 B
C#
26 lines
679 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace nadena.dev.modular_avatar.core
|
|
{
|
|
[Serializable]
|
|
public struct ToggledObject
|
|
{
|
|
public AvatarObjectReference Object;
|
|
public bool Active;
|
|
}
|
|
|
|
[AddComponentMenu("Modular Avatar/MA Object Toggle")]
|
|
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/object-toggle?lang=auto")]
|
|
public class ModularAvatarObjectToggle : ReactiveComponent
|
|
{
|
|
[SerializeField] private List<ToggledObject> m_objects = new();
|
|
|
|
public List<ToggledObject> Objects
|
|
{
|
|
get => m_objects;
|
|
set => m_objects = value;
|
|
}
|
|
}
|
|
} |