mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +08:00
318599ae3d
Closes: #84
33 lines
792 B
C#
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>();
|
|
}
|
|
} |