modular-avatar/Packages/nadena.dev.modular-avatar/Runtime/ModularAvatarParameters.cs

33 lines
792 B
C#
Raw Normal View History

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