Commit Graph

6 Commits

Author SHA1 Message Date
Isamu Mogi
2445f98017 Unity 6.2 以降 6.5 未満で TreeView が Obsolete 警告を出すのに対応
Unity 6.2 の時点で、非Genericな `TreeView` が Obsolete となり警告が出るようになりました。これを抑制します。

Unity 6.5 でそのクラスは削除されたため、 https://github.com/vrm-c/UniVRM/issues/2803 で `#if UNITY_6000_5_OR_NEWER` を用いて Unity 6.5 以降はGeneric版の `TreeView<int>`  に置き換わるようになっています。

この `#if` 条件を `UNITY_6000_2_OR_NEWER` に拡張することで、 6.5 未満かつ 6.2 の場合でも新版を利用するようにし、警告が出力されないようにしました。

発生していた警告は次のようなものでした。

```
Packages\VRM10\Editor\Components\SpringBone\SpringBoneTreeView.cs(14,39): warning CS0618: 'TreeView' is obsolete: 'TreeView is now deprecated. You can likely now use TreeView<int> instead and not think more about it. But if you were using that identifier to store InstanceID data, you should instead opt to upgrade your TreeViews to use TreeView<InstanceID> to get the proper typing.'
```
2026-07-04 15:48:55 +09:00
matsutaka
016e91f6af GetControlIdをextensionに変更
https://github.com/vrm-c/UniVRM/pull/2804#issuecomment-4798507922 による。

将来の変更時に破壊的変更にならないよう、 internal になっている。
結果として、 VRM10_Samples では、独自の定義を行なっている。
2026-06-25 22:22:59 +09:00
matsutaka
eb7936bfe5 fix: 不要なEntityId.ToULongを削除 2026-06-24 18:08:49 +09:00
matsutaka
78ab1af896 fix: VRM10 - Unity 6.0 でのエラーを修正 2026-06-24 17:47:11 +09:00
matsutaka
4d2c769f0b fix: VRM10 - Unity 6.5 でのエラーを修正
- TreeViewをTreeView<T>に変更
- GetInstanceID()をGetEntityId()に置き換え
- 上記の受け型もintからEntityIdに変更
- Handles.SphereHandleCap()等の第一引数 control id をコンポーネントから取得する関数を追加
2026-06-24 17:17:40 +09:00
ousttrue
9b129cf788 mv UniGLTF, UniVRM and VRM to Packages from Assets 2025-10-28 14:10:51 +09:00