UniVRM/Assets/VRM10/Runtime/Components
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
..
Constraint Merge pull request #1785 from 0b5vr/mtoon-1-beta 2022-09-09 13:41:16 +09:00
Expression Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応 2024-05-08 03:48:25 +09:00
FirstPerson static 変数の管理はやめて、定数置き場になった 2021-09-09 21:14:31 +09:00
LookAt Fix outer and inner limitation of eye direction in vrm-1.0 2023-10-11 18:40:22 +09:00
SpringBone Editorスクリプトの配置間違い 2024-03-01 12:54:06 +09:00
Vrm10Instance Add RequireComponent 2024-02-17 15:25:09 +09:00
VRM10Object headless mesh を destroy 対象に追加する 2024-02-26 16:12:06 +09:00
Vrm10Runtime LookAtEyeDirection を Yaw, Pitch 二値に縮小。 2023-08-18 18:13:02 +09:00
VrmAnimationInstance rename TPose to Vrm10TPose 2023-08-21 17:03:18 +09:00
Constraint.meta merge vrm10 2021-01-07 13:37:24 +09:00
Expression.meta merge vrm10 2021-01-07 13:37:24 +09:00
FirstPerson.meta merge vrm10 2021-01-07 13:37:24 +09:00
LookAt.meta merge vrm10 2021-01-07 13:37:24 +09:00
PrefabRelatedScriptableObject.cs impl custom editor 2021-06-18 18:52:14 +09:00
PrefabRelatedScriptableObject.cs.meta impl custom editor 2021-06-18 18:52:14 +09:00
SpringBone.meta merge vrm10 2021-01-07 13:37:24 +09:00
Vrm10Instance.meta rename_VRM10Controller_to_Vrm10Instance 2021-09-28 13:27:28 +09:00
VRM10Object.meta WIP VRM10Object 2021-06-15 19:10:54 +09:00
Vrm10Runtime.meta Vrm10Instance と Vrm10Runtime で責務を整理する 2022-04-11 15:50:53 +09:00
VrmAnimationInstance.meta VrmAnimationInstance 2023-06-14 16:45:42 +09:00