modular-avatar/Packages/net.fushizen.modular-avatar/Runtime/ModularAvatarParameters.cs

32 lines
739 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;
namespace net.fushizen.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]
public class ModularAvatarParameters : AvatarTagComponent
{
public List<ParameterConfig> parameters = new List<ParameterConfig>();
}
}