Commit Graph

339 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
ousttrue
8741e5e119 Editorスクリプトの配置間違い 2024-03-01 12:54:06 +09:00
ousttrue
712b35c542 inspector の list で VRM10SpringBoneColliderGroup の名前を表示する 2024-02-27 19:20:11 +09:00
ousttrue
a552230f4c headless mesh を destroy 対象に追加する 2024-02-26 16:12:06 +09:00
ousttrue
a4758d1b4d auto で headless を作成する必要がなかったときの fallback は both の挙動 2024-02-26 16:11:22 +09:00
Fuji Sunflower
e4474a3331
Add RequireComponent
Add Humanoid as RequireComponent to Vrm10Instance.cs
2024-02-17 15:25:09 +09:00
tsgcpp
f3e0e8e417 fix: Skip Vrm10Runtime instantiation after the GameObject is destroyed 2024-01-06 00:16:03 +09:00
ousttrue
225d58cf12 fix 4 indent 2023-11-13 19:05:32 +09:00
ousttrue
d4ca89562e fix BoneWeights in MeshIntegration 2023-11-06 20:58:27 +09:00
ousttrue
12c5f9a7d2 CreateErasedMeshAsync 2023-11-01 20:37:14 +09:00
ousttrue
acc47ef119 WIP generate FirstPerson headless model 2023-11-01 20:03:59 +09:00
Fuji Sunflower
ad11124329 Fix null exception
Fix null exception by Humanoid
2023-10-28 20:12:52 +09:00
Masataka SUMI
b93dac4c46 Fix outer and inner limitation of eye direction in vrm-1.0 2023-10-11 18:40:22 +09:00
Masataka SUMI
a4dea7d279 Refactoring 2023-10-11 18:38:50 +09:00
Masataka SUMI
21c457a868 Fix incorrect eye direction control at VRM 1.0 2023-10-11 18:31:20 +09:00
ousttrue
ba77522f62 rename TPose to Vrm10TPose 2023-08-21 17:03:18 +09:00
ousttrue
1d05e845c9 sample の retarget を更新。
TPose を表現する empty クラスを追加。
2023-08-21 16:25:49 +09:00
ousttrue
f514e89962 LookAtEyeDirection を Yaw, Pitch 二値に縮小。
左目と右目の独立はまたの機会に・・・
2023-08-18 18:13:02 +09:00
ousttrue
0c4f768eb2 LookAtInput get, set 2023-08-18 18:03:51 +09:00
ousttrue
43033ae0dd Vrm10RuntimeLookAt やりなおし。 2023-08-18 17:35:03 +09:00
ousttrue
44d2f2a926 LookAtInput を導入。LookAt.Process を整理。値の取得 => 位置ベースの場合に角度に解決 の2ステップ。
obsolete 削除
2023-08-18 15:51:59 +09:00
ousttrue
eddc4a0e27 rename variable 2023-08-18 15:06:41 +09:00
ousttrue
6883803f72 fix comment 2023-08-17 20:41:34 +09:00
ousttrue
ad9d05423a mv ILookAtEyeDirectionProvider 2023-08-17 20:37:31 +09:00
ousttrue
0501c43a42 ILookAtEyeDirectionProvider を Vrm10RuntimeExpression から取り外し 2023-08-17 20:36:17 +09:00
Masataka SUMI
e6633dc495
Merge pull request #2135 from Santarh/expressionFaster
Optimize `MorphTargetBindingMerger` with minimum `Dictionary` usage
2023-08-17 18:30:50 +09:00
Masataka SUMI
53416516de replace implementation of MorphTargetBindingMerger 2023-08-17 17:10:38 +09:00
ousttrue
72472c3f58 LookAt memo 2023-08-17 16:57:24 +09:00
ousttrue
1b10fff4db implement VrmAnimationInstance expression. 2023-08-17 16:43:34 +09:00
Masataka SUMI
adc22ed416 comment 2023-08-17 16:20:28 +09:00
ousttrue
a3d6579ec7 LoadHumanPose, LoadExpressions, LoadLookAt 2023-08-17 15:59:19 +09:00
ousttrue
7cab5161fa UniVRM10.VRM10Viewer.VrmAnimation to UniVRM10.Vrm10PoseLoader 2023-08-17 14:58:50 +09:00
Masataka SUMI
96d819f0c6 ordinal key comparer 2023-08-16 23:01:28 +09:00
Masataka SUMI
9574c15966 implement MorphTargetBindingMerger2 with minimum Dictionary access. 2023-08-16 23:01:12 +09:00
ousttrue
00641d4720 naming 2023-08-16 14:58:40 +09:00
ousttrue
01fe012fbf 1 origin 2023-08-16 14:49:21 +09:00
Masataka SUMI
8950900bb9 Merge branch 'master' of https://github.com/vrm-c/UniVRM into expressionFaster 2023-08-16 14:18:41 +09:00
ousttrue
27b284bdb6 move Retarget to API 2023-08-16 13:53:54 +09:00
Masataka SUMI
506b2a5b04 Don't change raw blendshapes immediately when setting Expression's weights. 2023-08-15 21:24:12 +09:00
Masataka SUMI
95f405dae9 Add Alternative Implementation 2023-08-15 21:20:57 +09:00
Masataka SUMI
7308551d09 Pass IEqualityComparer<ExpressionKey> 2023-08-15 17:59:31 +09:00
ousttrue
6a32acbda4
Merge pull request #2124 from ousttrue/feature/vrma_animation_clip
VrmAnimation の Expression は float field に変更
2023-08-15 17:40:16 +09:00
Masataka SUMI
e57480dc00 make EqualityComparer implementation internal 2023-08-15 17:12:20 +09:00
Masataka SUMI
01394bbde7 Speed up ExpressionKey comparison. 2023-08-15 16:38:27 +09:00
notargs
4621d51001 Add Vrm10RuntimeExpression.SetWeightNonAlloc method 2023-08-15 12:16:41 +09:00
ousttrue
0cfd37c9b4 custom_00 ~ custom_99 を追加 2023-08-08 21:01:38 +09:00
ousttrue
1baf2e5e7d VrmAnimation の Expression 実装を、透明な transform の x 座標を転用するのをやめて、
AnimationClip に普通の float curve として格納する様に変更した。

VrmAnimationInstance の public field と連動する。
2023-08-08 18:53:32 +09:00
notargs
8bd617e7d7 Remove linq snippets disused on unity update. 2023-08-08 15:31:13 +09:00
ousttrue
77ecdc2d55 VrmAnimationImporter create VrmAnimationInstance 2023-06-14 17:00:25 +09:00
ousttrue
464a5c8953 VrmAnimationInstance 2023-06-14 16:45:42 +09:00