mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-04 19:49:02 +08:00
Fix hide internal components in Unity 6:
- [AddComponentMenu("")] does not work in Unity 6. - Replace it with [AddComponentMenu("/")] - This alternative is confirmed to also work in Unity 2022.
This commit is contained in:
parent
eecb9c2c21
commit
9a47c07609
@ -19,7 +19,7 @@ namespace nadena.dev.modular_avatar.core
|
||||
/// initially inactive in the scene (which can have high overhead if the user has a lot of inactive avatars in the
|
||||
/// scene).
|
||||
/// </summary>
|
||||
[AddComponentMenu("")]
|
||||
[AddComponentMenu("/")]
|
||||
[ExecuteInEditMode]
|
||||
[DefaultExecutionOrder(-9998)]
|
||||
public class Activator : MonoBehaviour, IEditorOnly
|
||||
@ -30,7 +30,7 @@ namespace nadena.dev.modular_avatar.core
|
||||
}
|
||||
}
|
||||
|
||||
[AddComponentMenu("")]
|
||||
[AddComponentMenu("/")]
|
||||
[ExecuteInEditMode]
|
||||
[DefaultExecutionOrder(-9997)]
|
||||
public class AvatarActivator : MonoBehaviour, IEditorOnly
|
||||
|
@ -6,7 +6,7 @@ namespace nadena.dev.modular_avatar.core
|
||||
#if MA_VRCSDK3_AVATARS
|
||||
[AddComponentMenu("Modular Avatar/MA Convert Constraints")]
|
||||
#else
|
||||
[AddComponentMenu("")]
|
||||
[AddComponentMenu("/")]
|
||||
#endif
|
||||
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/convert-constraints?lang=auto")]
|
||||
public class ModularAvatarConvertConstraints : AvatarTagComponent
|
||||
|
Loading…
x
Reference in New Issue
Block a user