UniVRM/Assets/VRM
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
..
Documentation add upm documentation for VRM and VRMShaders 2020-07-21 12:54:09 +09:00
Editor Create UnityPackage Action で UnityPackage をビルドして artifact に upload する (#2272) 2024-03-28 14:37:21 +09:00
Runtime Unity2023.1以降でFindObjectsOfType系APIがObsolete警告を出すのに対応 2024-05-08 03:48:25 +09:00
Samples~ UniVRM-0.117 2024-01-09 14:33:17 +09:00
Tests fix test 2023-12-12 15:48:23 +09:00
CHANGELOG.md add upm documentation for VRM and VRMShaders 2020-07-21 12:54:09 +09:00
CHANGELOG.md.meta add upm documentation for VRM and VRMShaders 2020-07-21 12:54:09 +09:00
Documentation.meta add upm documentation for VRM and VRMShaders 2020-07-21 12:54:09 +09:00
Editor.meta FolderとAsmdef整理。Runtime, Editor, Tests 2020-12-01 19:54:13 +09:00
LICENSE.md add upm documentation for VRM and VRMShaders 2020-07-21 12:54:09 +09:00
LICENSE.md.meta add upm documentation for VRM and VRMShaders 2020-07-21 12:54:09 +09:00
package.json UniVRM-0.121.0 2024-03-19 19:06:40 +09:00
package.json.meta Add UPM integration 2020-05-08 12:38:00 +08:00
README.md update README 2020-07-21 14:04:03 +09:00
README.md.meta add README in vrm and vrmshaders folder 2020-07-21 13:21:58 +09:00
README.url Add README.url 2019-02-05 20:53:44 +09:00
README.url.meta Add README.url 2019-02-05 20:53:44 +09:00
Runtime.meta FolderとAsmdef整理。Runtime, Editor, Tests 2020-12-01 19:54:13 +09:00
Tests.meta FolderとAsmdef整理。Runtime, Editor, Tests 2020-12-01 19:54:13 +09:00

VRM

The core library for UniVRM-0.XX.

Import VRM (Unity 2019.3.4f1~)

Window -> Package Manager -> Add package from git URL and add the followings in order:

  • https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders
  • https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM => depends on VRMShaders

or add the package name and git URL in Packages/manifest.json:

{
  "dependencies": {
    "com.vrmc.vrmshaders": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders",
    "com.vrmc.univrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM",
  }
}