mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-23 19:15:07 -05:00
fix compile error in unity 2021
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user