Commit Graph

365 Commits

Author SHA1 Message Date
Masataka SUMI
7fa6e894ac remove experimental 2024-07-30 23:12:33 +09:00
Masataka SUMI
d5cffceca0 glTF ScriptedImporter can detect project's RenderPipeline or select manually. 2024-07-30 23:11:35 +09:00
Masataka SUMI
23f387a7c8 add RenderPipeline considering to gltf/vrm/vrm10 exporters 2024-07-29 22:28:35 +09:00
ousttrue
be20563059 GetComponent を置き換え。
TryGetComponent
GetComponentOrThrow(拡張関数)
GetComponentOrNull(拡張関数)

sample と test は据え置き
2024-07-24 22:09:30 +09:00
ousttrue
652ac53cc9 fix AnimationValidator
#2319 これかも
2024-07-24 20:30:44 +09:00
ousttrue
ca0e062e9c use TryGetComponent 2024-07-24 20:18:44 +09:00
ousttrue
6c929f67f0 attach されていない場合でも is 演算子が true になって後続で例外になる 2024-07-24 19:42:34 +09:00
Masataka SUMI
47681f7677 Merge branch 'master' of https://github.com/vrm-c/UniVRM into disassemblyVrmShaders6 2024-07-23 20:00:33 +09:00
ousttrue
0f704c7142 URP プロジェクトで matcap を含むモデルを Editor import するとエラーになるのを回避(暫定)
とりえあずエラー回避。
`Exception: UnityEngine.Texture.Sphere is not converted`
mtoon URP "MToon" shader is not ready. import fallback to unlit
2024-07-23 15:34:10 +09:00
Masataka SUMI
e9da5e2b7b mv VRMShaders namespace to UniGLTF 2024-07-20 23:47:45 +09:00
Masataka SUMI
5cdec669a0 mv TextureIO from VRMShaders to UniGLTF 2024-07-20 23:08:55 +09:00
ousttrue
42a3014e7a UniGLTFLogger を追加
[System.Diagnostics.Conditional("VRM_DEVELOP")] により呼び出しが消滅する。
2024-07-16 15:48:50 +09:00
ousttrue
12208de468 VRM-1.0 の export 時に Animator の代替に UniHumanoid.Humanoid を使う 2024-07-03 16:16:13 +09:00
ousttrue
c7f2104d2d MATERIALS_CONTAINS_NULL を warn に格下げ 2024-06-07 16:58:44 +09:00
Isamu Mogi
c1d7a4b099 Unity2023.1以降でGetScriptingDefineSymbolsForGroup系APIがObsolete警告が出るのに対応
Unity 2023.1以降のバージョンでPlayerSettings.GetScriptingDefineSymbolsForGroup()系の関数がObsoleteになり、次の警告が発生していました。

```
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(109,27): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(116,27): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(117,13): warning CS0618: 'PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup, string)' is obsolete: 'Use SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string defines) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(125,27): warning CS0618: 'PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup)' is obsolete: 'Use GetScriptingDefineSymbols(NamedBuildTarget buildTarget) instead'
Assets\UniGLTF\Editor\UniGLTF\UniGLTFPreference.cs(126,13): warning CS0618: 'PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup, string)' is obsolete: 'Use SetScriptingDefineSymbols(NamedBuildTarget buildTarget, string defines) instead'
```

代わりにGetScriptingDefineSymbols系APIを使うようにしました。これはUnity 2021.3にも存在しているので、そのまま置き換えることができました。
2024-05-03 00:35:26 +09:00
Masataka SUMI
2c84452e3b
Create UnityPackage Action で UnityPackage をビルドして artifact に upload する (#2272) 2024-03-28 14:37:21 +09:00
Masataka SUMI
69c518caee
Create UnityPackage Action でとりあえず EditMode Tests まで走らせる (#2271) 2024-03-27 22:18:29 +09:00
ousttrue
1329be9662 impl onAddCallback, onRemoveCallback 2024-03-06 17:42:36 +09:00
ousttrue
7e07c5806e blendshape rotation scaling がまとめて処理される
blendshape を除外するには処理前にすべて 0 に戻す処理が必要。
前はやっているところもあったのだけど、
undo とか事後に値を復帰させるか否かなど、
選択肢とトレードオフがあります。
2024-02-05 16:41:16 +09:00
ousttrue
12db3507be rotation もしくは scaling だけを freeze するのは難しかった。
両方やるかやらないかに修正。
2024-02-05 16:21:30 +09:00
ousttrue
9c22dc58b5 move asset reload to editor 2023-12-12 16:31:04 +09:00
ousttrue
2be66df5aa fix no weight bone 2023-12-11 13:34:25 +09:00
ousttrue
6e13c87c00 add renderer without firstperson setting 2023-12-08 17:47:34 +09:00
ousttrue
28d55421ca WriteAndReload to Reload. VRMShaders.Symbols.VRM_DEVELOP. meta 消し忘れ 2023-12-06 18:53:53 +09:00
ousttrue
0e1dc414e6 remove unused MaterialKey 2023-12-06 18:30:41 +09:00
ousttrue
b12c9ed87c WriteAssets and WritePrefab 2023-12-05 16:21:35 +09:00
ousttrue
fb7cb163b1 fix VrmMeshIntegratorWizard.WriteAssets 2023-12-04 17:55:36 +09:00
ousttrue
b5a7c1b13b remove GltfMeshUtility.ForceUniqueName.
automatically force when createAvatar
2023-12-04 17:04:44 +09:00
ousttrue
e3404e1f16 refactor MeshUtility.Process params 2023-12-04 17:00:15 +09:00
ousttrue
103b575439 fix mesh bone. fix WriteAndReload 2023-12-01 17:50:21 +09:00
ousttrue
f84a6ccb73 fix GltfMeshUtility.WriteAssets 2023-12-01 17:06:31 +09:00
ousttrue
f8f27d0619 prefab と runtime で整合性。
- prefab 時は instance 化する。統合グループをの内容をインスタンス後のもので置き換える
- 未使用削除
2023-11-29 20:02:46 +09:00
ousttrue
ddfe692164 CheckPrefabType 2023-11-29 18:45:15 +09:00
ousttrue
b890201581 PrefabUtility.UnpackPrefabInstance 2023-11-27 20:23:16 +09:00
ousttrue
6d251c5993 fix menu priority 2023-11-27 14:53:14 +09:00
ousttrue
6dd4320656 TargetIsPrefab and DialogMessage 2023-11-21 19:36:40 +09:00
ousttrue
0394b2a5fe UpdateMeshIntegrationGroups 2023-11-17 21:39:40 +09:00
ousttrue
c0d29dd2e6 UniGLTF.MeshUtility.MeshIntegrationTab 2023-11-17 20:42:45 +09:00
ousttrue
b216a5bbc0 メニューの表記、順番調整
- `-1.0` => ` 1.0`
- `Import` and `Export`
- `Export < Import < MeshUtility` order
2023-11-15 18:24:02 +09:00
ousttrue
05738f2f49 不要な using.
TODO: language server 設定確認...
2023-11-15 16:08:33 +09:00
ousttrue
90a1192be2 menu 名と dialog 名を整理
- menu 名を関連クラスの `public const string MENU_NAME` にした(特に validate=true で2回同名で呼ぶところ)
- menu 表示名と dialog のタイトルを同じ文字列にした
2023-11-15 16:01:21 +09:00
ousttrue
8deb17d18c WIP split by blendshape 2023-11-07 19:21:03 +09:00
ousttrue
c4fbd485ed
Merge pull request #2181 from FujiSunflower/master
Simplified some GUI
2023-11-01 18:30:28 +09:00
Fuji Sunflower
407d6372f4 Change to VerticalScope
Change to VerticalScope
2023-10-28 20:27:01 +09:00
ousttrue
0f62aeffa1 impl inplace MeshFreeze and MeshIntegration 2023-10-27 16:18:07 +09:00
ousttrue
2c8983b1ae Vrm10MeshUtilityDialog 2023-10-24 19:37:46 +09:00
ousttrue
d4f0bb2899 rename 2023-10-23 19:28:47 +09:00
ousttrue
c1c894935a remove not used 2023-10-23 18:39:15 +09:00
Isamu Mogi
9ddb099cc6 Unity 2022.2以降のScriptedImporterEditor.ResetValues()のObsolete警告に対応
Unity 2022.2以降のバージョンでScriptedImporterEditor.ResetValues()がObsoleteになり、代わりにDiscardChanges()の利用が推奨されるようになりました。
UniGLTF.RemapScriptedImporterEditorBaseがResetValues()を利用しており、それにより、次のような警告を発生させていました。

```
Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapScriptedImporterEditorBase.cs(50,33): warning CS0672: Member 'RemapScriptedImporterEditorBase.ResetValues()' overrides obsolete member 'AssetImporterEditor.ResetValues()'. Add the Obsolete attribute to 'RemapScriptedImporterEditorBase.ResetValues()'.
Assets/UniGLTF/Editor/UniGLTF/ScriptedImporter/RemapScriptedImporterEditorBase.cs(54,13): warning CS0618: 'AssetImporterEditor.ResetValues()' is obsolete: 'UnityUpgradeable () -> DiscardChanges'
```

オーバーライドされたResetValuesにもObsoleteを付与することで、警告が抑制されるようになりました。

また、移行先として推奨されているDiscardChanges()の実装も行いました。
2023-06-19 00:06:12 +09:00
Masataka SUMI
9f16a268a6 rename 2022-11-10 21:26:02 +09:00