UniVRM/Assets/VRM10/Runtime
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
..
Components Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応 2024-05-08 03:48:25 +09:00
ControlRig rename TPose to Vrm10TPose 2023-08-21 17:03:18 +09:00
FastSpringBone Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応 2024-05-08 03:48:25 +09:00
Format vrm spec 更新。InitRotationPoseProvider 修正。ENDSITE 対策 2023-03-02 19:54:37 +09:00
IO If MaterialDescriptorGenerator is not specified, automatically determine it. 2024-04-30 16:35:48 +09:00
MeshUtility blendshape rotation scaling がまとめて処理される 2024-02-05 16:41:16 +09:00
Migration migration 時に spring 関連の名前を付ける 2024-02-27 19:19:42 +09:00
Scenes Add ControlRigGenerationOption 2022-09-16 17:02:29 +09:00
Version VRMVersion を VRMSpecVersion にリネーム 2023-10-20 17:54:02 +09:00
AssemblyInfo.cs Refactoring about Vrm10 LookAtRuntime 2023-02-14 22:08:18 +09:00
AssemblyInfo.cs.meta Refactoring about Vrm10 LookAtRuntime 2023-02-14 22:08:18 +09:00
Components.meta merge vrm10 2021-01-07 13:37:24 +09:00
ControlRig.meta mv Assets/VRM10/Runtime/Components/Vrm10Runtime/ControlRig to Assets/VRM10/Runtime/ControlRig 2023-02-20 13:02:53 +09:00
EnumFlagsAttribute.cs VRM10RotationConstraintEditor 2021-05-18 17:00:21 +09:00
EnumFlagsAttribute.cs.meta VRM10RotationConstraintEditor 2021-05-18 17:00:21 +09:00
FastSpringBone.meta Add fastSpringBone10 2021-09-29 17:02:45 +09:00
Format.meta merge vrm10 2021-01-07 13:37:24 +09:00
IO.meta merge vrm10 2021-01-07 13:37:24 +09:00
MeshUtility.meta Vrm10MeshUtility 2023-10-25 20:48:52 +09:00
Migration.meta init Migration 2021-01-20 18:36:39 +09:00
Scenes.meta merge vrm10 2021-01-07 13:37:24 +09:00
StringExtensions.cs fix: 無名のアセットファイルを生成しようとする 2023-08-23 14:44:32 +09:00
StringExtensions.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
UnityExtensions.cs Specify color space in exporting VRM10 Material. 2021-05-07 19:57:42 +09:00
UnityExtensions.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
Version.meta merge vrm10 2021-01-07 13:37:24 +09:00
VRM10.asmdef Create an asmdef named UniGLTF.Utils 2022-09-07 15:53:59 +09:00
VRM10.asmdef.meta merge vrm10 2021-01-07 13:37:24 +09:00