UniVRM/Assets/VRM10/Runtime/FastSpringBone
Isamu Mogi 018aec1fab Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応
Unity 2023.1以降のバージョンでUnityEngine.Object.FindObjectsOfType系APIがObsoleteになり、次の警告が発生していました。

```
Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs(250,24): warning CS0618: 'Object.FindObjectOfType<T>()' is obsolete: 'Object.FindObjectOfType has been deprecated. Use Object.FindFirstObjectByType instead or if finding any instance is acceptable the faster Object.FindAnyObjectByType'
Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs(208,31): warning CS0618: 'Object.FindObjectsOfType<T>()' is obsolete: 'Object.FindObjectsOfType has been deprecated. Use Object.FindObjectsByType instead which lets you decide whether you need the results sorted or not.  FindObjectsOfType sorts the results by InstanceID but if you do not need this using FindObjectSortMode.None is considerably faster.'
```

代わりにFindObjectsBy系APIを使うようにしました。これはUnity 2021.3にも存在しているので、そのまま使うことができました。

FindObjectOfType()とFindFirstObjectByType()の違いに関してはドキュメントからは読み取れませんでしたが、
Unity-Technologiesgが公開しているUnity 6000のソースコードを見る限り、動作は同一に見えるためそのまま置き換えました。

https://github.com/Unity-Technologies/UnityCsReference/blob/6000.0/Runtime/Export/Scripting/UnityEngineObject.bindings.cs#L586-L602
2024-05-08 03:48:25 +09:00
..
Blittables 外力をキャラクターごとに設定するように変更 2022-10-20 15:31:59 +09:00
InputPorts Set externalData as initial value. 2022-11-04 21:38:58 +09:00
System Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応 2024-05-08 03:48:25 +09:00
Blittables.meta Add fastSpringBone10 2021-09-29 17:02:45 +09:00
FastSpringBone10.asmdef remove mathematics 2022-05-31 15:37:21 +09:00
FastSpringBone10.asmdef.meta Add fastSpringBone10 2021-09-29 17:02:45 +09:00
InputPorts.meta FastSpringBone作り直しのため、データ構造を再構築 2021-10-01 17:29:42 +09:00
System.meta FastSpringBone作り直しのため、データ構造を再構築 2021-10-01 17:29:42 +09:00