fix compile error in unity 2021

This commit is contained in:
RDAG
2025-01-27 00:18:19 +09:00
parent 239841f519
commit f67b4d7269
2 changed files with 8 additions and 0 deletions

View File

@@ -43,7 +43,11 @@ namespace UniVRM10
{
bindingPath = nameof(VRM10SpringBoneColliderGroup.Colliders)
};
#if UNITY_2022_3_OR_NEWER
m_colliders.selectionChanged += (e) =>
#else
m_colliders.onSelectionChange += (e) =>
#endif
{
var item = (SerializedProperty)e.FirstOrDefault();
if (item == null)

View File

@@ -309,7 +309,11 @@ namespace UniVRM10
root.Add(m_springs);
var selected = new PropertyField();
#if UNITY_2022_3_OR_NEWER
m_springs.selectedIndicesChanged += (e) =>
#else
m_springs.onSelectedIndicesChange += (e) =>
#endif
{
var values = e.ToArray();
if (values.Length > 0)