modular-avatar/Packages/nadena.dev.modular-avatar/Runtime/ModularAvatarParameters.cs
2022-11-10 20:42:46 -08:00

33 lines
792 B
C#

using System;
using System.Collections.Generic;
using UnityEngine;
using VRC.SDK3.Avatars.ScriptableObjects;
namespace nadena.dev.modular_avatar.core
{
[Serializable]
public struct ParameterConfig
{
public string nameOrPrefix;
public string remapTo;
public bool internalParameter, isPrefix;
public ParameterSyncType syncType;
public float defaultValue;
public bool saved;
}
public enum ParameterSyncType
{
NotSynced,
Int,
Float,
Bool,
}
[DisallowMultipleComponent]
[AddComponentMenu("Modular Avatar/MA Parameters")]
public class ModularAvatarParameters : AvatarTagComponent
{
public List<ParameterConfig> parameters = new List<ParameterConfig>();
}
}