UniVRM/Assets/VRM10/Runtime/Components/Expression
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
..
MorphTargetBindingMerger replace implementation of MorphTargetBindingMerger 2023-08-17 17:10:38 +09:00
Preview Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応 2024-05-08 03:48:25 +09:00
DefaultExpressionValidator.cs Pass IEqualityComparer<ExpressionKey> 2023-08-15 17:59:31 +09:00
DefaultExpressionValidator.cs.meta Define ExpressionValidator instead of ExpressionAccumulator 2021-02-01 15:54:13 +09:00
ExpressionKey.cs ordinal key comparer 2023-08-16 23:01:28 +09:00
ExpressionKey.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
ExpressionMerger.cs replace implementation of MorphTargetBindingMerger 2023-08-17 17:10:38 +09:00
ExpressionMerger.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
ExpressionPreset.cs JsonSchema を更新してコードを再生成した 2021-07-02 19:57:37 +09:00
ExpressionPreset.cs.meta JsonSchema を更新してコードを再生成した 2021-07-02 19:57:37 +09:00
IExpressionValidator.cs Refactoring reference between Expression and LookAt. 2021-02-01 19:27:22 +09:00
IExpressionValidator.cs.meta Define ExpressionValidator instead of ExpressionAccumulator 2021-02-01 15:54:13 +09:00
IExpressionValidatorFactory.cs WIP VRM10Object 2021-06-15 19:10:54 +09:00
IExpressionValidatorFactory.cs.meta Define ExpressionValidator instead of ExpressionAccumulator 2021-02-01 15:54:13 +09:00
ILookAtEyeDirectionApplicable.cs Suppress GC to zero about Expression functions. 2021-02-01 23:17:17 +09:00
ILookAtEyeDirectionApplicable.cs.meta Refactoring reference between Expression and LookAt. 2021-02-01 19:27:22 +09:00
MaterialColorBinding.cs remove Material and VRM from VrmLib 2021-04-01 12:16:45 +09:00
MaterialColorBinding.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
MaterialUVBinding.cs merge vrm10 2021-01-07 13:37:24 +09:00
MaterialUVBinding.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
MaterialValueBindingMerger.cs follow matcapFactor in material color binding 2022-09-21 19:17:06 +09:00
MaterialValueBindingMerger.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
MorphTargetBinding.cs warning message use MAX_WEIGHT 2021-11-24 21:56:10 +09:00
MorphTargetBinding.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00
MorphTargetBindingMerger.meta Add Alternative Implementation 2023-08-15 21:20:57 +09:00
Preview.meta Add Component するので Runtime にいる必要があった。 2021-01-29 16:34:34 +09:00
PreviewMaterialItem.cs Make unsupported shaders visible 2022-10-26 15:56:36 +09:00
PreviewMaterialItem.cs.meta fix build error in vrm10 2021-01-28 18:33:49 +09:00
VRM10Expression.cs VRM10Expression.Preset と ExpressionName を廃止 2021-08-10 19:49:48 +09:00
VRM10Expression.cs.meta merge vrm10 2021-01-07 13:37:24 +09:00