mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
32dc864d8d
* feat: add Object Toggle component * docs: Object Toggle docs * chore: add missing HelpURL * chore: fix broken test
26 lines
680 B
C#
26 lines
680 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 : AvatarTagComponent
|
|
{
|
|
[SerializeField] private List<ToggledObject> m_objects = new();
|
|
|
|
public List<ToggledObject> Objects
|
|
{
|
|
get => m_objects;
|
|
set => m_objects = value;
|
|
}
|
|
}
|
|
} |