Commit Graph

7 Commits

Author SHA1 Message Date
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
T-Kuhn
b8445abf1f Changed FastSpringBoneService ExecutionOrder to make sure FastSpringBoneService executes after Vrm10Instance 2023-01-25 12:56:15 +09:00
0b5vr
76ebf0ef73
fix: Fix outdated exception message
`UpdateTypes` は `LateUpdate` か `Manual` しかなく、 `None` はこれは `Manual` の変更忘れでしょうか?
2022-10-26 18:48:02 +09:00
ousttrue
f17bac5b03 FastSpringBoneService.ManualUpdate に deltaTime 引き数を追加 2022-10-25 21:52:19 +09:00
ousttrue
e1e4bfde78 FastSpringBoneService manual update 2022-10-24 19:12:52 +09:00
notargs
700f79a700 Fix FastSpringBoneService initializing flow for #1567 2022-04-06 17:49:10 +09:00
notargs
3ba8b65718 Rename system -> service 2021-10-05 18:56:04 +09:00