Organize add component menu

This commit is contained in:
bd_ 2022-11-09 17:49:00 -08:00
parent 2091402572
commit b3eec08abe
7 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@ namespace net.fushizen.modular_avatar.core
[RequireComponent(typeof(SkinnedMeshRenderer))] [RequireComponent(typeof(SkinnedMeshRenderer))]
[DisallowMultipleComponent] [DisallowMultipleComponent]
[ExecuteAlways] [ExecuteAlways]
[AddComponentMenu("Modular Avatar/MA Blendshape Sync")]
public class ModularAvatarBlendshapeSync : AvatarTagComponent public class ModularAvatarBlendshapeSync : AvatarTagComponent
{ {
public List<BlendshapeBinding> Bindings = new List<BlendshapeBinding>(); public List<BlendshapeBinding> Bindings = new List<BlendshapeBinding>();

View File

@ -30,6 +30,7 @@ namespace net.fushizen.modular_avatar.core
{ {
[ExecuteInEditMode] [ExecuteInEditMode]
[DisallowMultipleComponent] [DisallowMultipleComponent]
[AddComponentMenu("Modular Avatar/MA Bone Proxy")]
public class ModularAvatarBoneProxy : AvatarTagComponent public class ModularAvatarBoneProxy : AvatarTagComponent
{ {
private Transform _targetCache; private Transform _targetCache;

View File

@ -4,6 +4,7 @@ using VRC.SDK3.Avatars.ScriptableObjects;
namespace net.fushizen.modular_avatar.core namespace net.fushizen.modular_avatar.core
{ {
[AddComponentMenu("Modular Avatar/MA Menu Installer")]
public class ModularAvatarMenuInstaller : AvatarTagComponent public class ModularAvatarMenuInstaller : AvatarTagComponent
{ {
public VRCExpressionsMenu menuToAppend; public VRCExpressionsMenu menuToAppend;

View File

@ -33,6 +33,7 @@ namespace net.fushizen.modular_avatar.core
Absolute Absolute
} }
[AddComponentMenu("Modular Avatar/MA Merge Animator")]
public class ModularAvatarMergeAnimator : AvatarTagComponent public class ModularAvatarMergeAnimator : AvatarTagComponent
{ {
public RuntimeAnimatorController animator; public RuntimeAnimatorController animator;

View File

@ -33,6 +33,7 @@ namespace net.fushizen.modular_avatar.core
{ {
[ExecuteInEditMode] [ExecuteInEditMode]
[DisallowMultipleComponent] [DisallowMultipleComponent]
[AddComponentMenu("Modular Avatar/MA Merge Armature")]
public class ModularAvatarMergeArmature : AvatarTagComponent public class ModularAvatarMergeArmature : AvatarTagComponent
{ {
private const float POS_EPSILON = 0.001f * 0.001f; private const float POS_EPSILON = 0.001f * 0.001f;

View File

@ -25,6 +25,7 @@ namespace net.fushizen.modular_avatar.core
} }
[DisallowMultipleComponent] [DisallowMultipleComponent]
[AddComponentMenu("Modular Avatar/MA Parameters")]
public class ModularAvatarParameters : AvatarTagComponent public class ModularAvatarParameters : AvatarTagComponent
{ {
public List<ParameterConfig> parameters = new List<ParameterConfig>(); public List<ParameterConfig> parameters = new List<ParameterConfig>();

View File

@ -3,6 +3,7 @@
namespace net.fushizen.modular_avatar.core namespace net.fushizen.modular_avatar.core
{ {
[AddComponentMenu("Modular Avatar/MA Visible Head Accessory")] [AddComponentMenu("Modular Avatar/MA Visible Head Accessory")]
[DisallowMultipleComponent]
public class ModularAvatarVisibleHeadAccessory : AvatarTagComponent public class ModularAvatarVisibleHeadAccessory : AvatarTagComponent
{ {
// no configuration needed // no configuration needed