38 lines
1.1 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using UnityEngine;
2022-10-15 18:43:21 -07:00
using VRC.SDK3.Avatars.ScriptableObjects;
2022-11-10 20: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-15 18:43:21 -07:00
public ParameterSyncType syncType;
public bool localOnly;
2022-10-15 18:43:21 -07:00
public float defaultValue;
public bool saved;
}
/**
* This enum is a bit poorly named, having been introduced before local-only parameters were a thing. In actuality,
* this is the parameter type - NotSynced indicates the parameter should not be registered in Expression Parameters.
*/
2022-10-15 18:43:21 -07:00
public enum ParameterSyncType
{
NotSynced,
Int,
Float,
Bool,
}
[DisallowMultipleComponent]
2022-11-09 17:49:00 -08:00
[AddComponentMenu("Modular Avatar/MA Parameters")]
public class ModularAvatarParameters : AvatarTagComponent
{
public List<ParameterConfig> parameters = new List<ParameterConfig>();
}
}