mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 12:15:05 +08:00
8d3da50b37
* chore: migrate Scale Adjuster to NDMF preview system * feat: MA Shape Changer * chore: update NDMF dependency * fix: unit test failure
30 lines
805 B
C#
30 lines
805 B
C#
#region
|
|
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
#if UNITY_EDITOR
|
|
#endif
|
|
|
|
#endregion
|
|
|
|
namespace nadena.dev.modular_avatar.core
|
|
{
|
|
[ExecuteInEditMode]
|
|
[DisallowMultipleComponent]
|
|
[AddComponentMenu("Modular Avatar/MA Scale Adjuster")]
|
|
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/scale-adjuster?lang=auto")]
|
|
public sealed class ModularAvatarScaleAdjuster : AvatarTagComponent
|
|
{
|
|
private const string ADJUSTER_OBJECT = "MA Scale Adjuster Proxy Renderer";
|
|
[SerializeField] private Vector3 m_Scale = Vector3.one;
|
|
|
|
public Vector3 Scale
|
|
{
|
|
get => m_Scale;
|
|
set => m_Scale = value;
|
|
}
|
|
|
|
[SerializeField] [FormerlySerializedAs("scaleProxy")]
|
|
internal Transform legacyScaleProxy;
|
|
}
|
|
} |