mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-11 23:19:00 +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
|
/// initially inactive in the scene (which can have high overhead if the user has a lot of inactive avatars in the
|
||||||
/// scene).
|
/// scene).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AddComponentMenu("")]
|
[AddComponentMenu("/")]
|
||||||
[ExecuteInEditMode]
|
[ExecuteInEditMode]
|
||||||
[DefaultExecutionOrder(-9998)]
|
[DefaultExecutionOrder(-9998)]
|
||||||
public class Activator : MonoBehaviour, IEditorOnly
|
public class Activator : MonoBehaviour, IEditorOnly
|
||||||
@ -30,7 +30,7 @@ namespace nadena.dev.modular_avatar.core
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[AddComponentMenu("")]
|
[AddComponentMenu("/")]
|
||||||
[ExecuteInEditMode]
|
[ExecuteInEditMode]
|
||||||
[DefaultExecutionOrder(-9997)]
|
[DefaultExecutionOrder(-9997)]
|
||||||
public class AvatarActivator : MonoBehaviour, IEditorOnly
|
public class AvatarActivator : MonoBehaviour, IEditorOnly
|
||||||
|
@ -6,7 +6,7 @@ namespace nadena.dev.modular_avatar.core
|
|||||||
#if MA_VRCSDK3_AVATARS
|
#if MA_VRCSDK3_AVATARS
|
||||||
[AddComponentMenu("Modular Avatar/MA Convert Constraints")]
|
[AddComponentMenu("Modular Avatar/MA Convert Constraints")]
|
||||||
#else
|
#else
|
||||||
[AddComponentMenu("")]
|
[AddComponentMenu("/")]
|
||||||
#endif
|
#endif
|
||||||
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/convert-constraints?lang=auto")]
|
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/convert-constraints?lang=auto")]
|
||||||
public class ModularAvatarConvertConstraints : AvatarTagComponent
|
public class ModularAvatarConvertConstraints : AvatarTagComponent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user