Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

警告メッセージを抑制してほしい #461

Closed
esperecyan opened this issue Jul 5, 2020 · 3 comments
Closed

警告メッセージを抑制してほしい #461

esperecyan opened this issue Jul 5, 2020 · 3 comments
Milestone

Comments

@esperecyan
Copy link

esperecyan commented Jul 5, 2020

バグについて

インポート時等に、コンソールなどへ警告メッセージが多数出力されます。

再現方法

  1. Unity 2019.4.2f1 で新規プロジェクトを作成
  2. 以下のページで、UPMの項の手順に従ってUniVRM-0.56.1を導入
    https://github.com/vrm-c/UniVRM/releases
  3. 「コンソール」ウィンドウを開く
  4. 以下の警告を確認できる
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniHumanoid\Scripts\IO\BvhImporterContext.cs(220,59): warning CS0618: 'ReplacePrefabOptions' is obsolete: 'This has turned into the more explicit APIs, SavePrefabAsset, SaveAsPrefabAsset, SaveAsPrefabAssetAndConnect'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniHumanoid\Scripts\IO\BvhImporterContext.cs(220,17): warning CS0618: 'PrefabUtility.ReplacePrefab(GameObject, Object, ReplacePrefabOptions)' is obsolete: 'Use SaveAsPrefabAsset or SaveAsPrefabAssetAndConnect with a path instead.'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniHumanoid\Scripts\IO\BvhImporterContext.cs(225,17): warning CS0618: 'PrefabUtility.CreatePrefab(string, GameObject)' is obsolete: 'Use SaveAsPrefabAsset instead.'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniHumanoid\Scenes\RuntimeBvhLoader.cs(17,16): warning CS0649: Field 'RuntimeBvhLoader.m_openButton' is never assigned to, and will always have its default value null
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniHumanoid\Scenes\RuntimeBvhLoader.cs(20,27): warning CS0649: Field 'RuntimeBvhLoader.m_dst' is never assigned to, and will always have its default value null
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniGLTF\Scripts\IO\FormatterExtensionsGltf.g.cs(101,13): warning CS0162: Unreachable code detected
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniVRM\Scripts\BlendShape\Blinker.cs(74,21): warning CS0618: 'VRMBlendShapeProxyExtensions.ImmediatelySetValue(VRMBlendShapeProxy, BlendShapePreset, float)' is obsolete: 'Use BlendShapeKey.CreateFromPreset'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniVRM\Scripts\BlendShape\Blinker.cs(77,17): warning CS0618: 'VRMBlendShapeProxyExtensions.ImmediatelySetValue(VRMBlendShapeProxy, BlendShapePreset, float)' is obsolete: 'Use BlendShapeKey.CreateFromPreset'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniVRM\Scripts\BlendShape\Blinker.cs(93,21): warning CS0618: 'VRMBlendShapeProxyExtensions.ImmediatelySetValue(VRMBlendShapeProxy, BlendShapePreset, float)' is obsolete: 'Use BlendShapeKey.CreateFromPreset'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniVRM\Scripts\BlendShape\Blinker.cs(96,17): warning CS0618: 'VRMBlendShapeProxyExtensions.ImmediatelySetValue(VRMBlendShapeProxy, BlendShapePreset, float)' is obsolete: 'Use BlendShapeKey.CreateFromPreset'
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniVRM\Scripts\Format\VRMVersionPartial.cs(88,30): warning CS0168: The variable 'e' is declared but never used
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniGLTF\Scripts\IO\FormatterExtensionsGltf.g.cs(217,13): warning CS0162: Unreachable code detected
Library\PackageCache\com.vrmc.univrm@2d30e866e5\UniVRM\Scripts\SpringBone\VRMSpringBone.cs(21,14): warning CS0649: Field 'VRMSpringBone.m_drawGizmo' is never assigned to, and will always have its default value false

期待する動作

コンソールに何も出力されない状態。

スクリーンショット

環境情報

  • OS: Windows 10
  • Unity version: Unity-2019.4.2f1
  • UniVRM version: 0.56.1

追加の状況・背景

他で警告メッセージが出ている場合に埋もれてしまうので、意図的でない警告メッセージは出ないようにしていもらいたいです。

@ousttrue ousttrue added this to the v0.57 milestone Jul 6, 2020
@hiroj
Copy link
Contributor

hiroj commented Jul 20, 2020

obsoleteになっている関数を使っている部分があるようなので、次回修正致します。

@ousttrue ousttrue mentioned this issue Jul 27, 2020
@ousttrue
Copy link
Contributor

残りの if(false) の警告(コード生成)は、 sparse の修正時にまとめてやる予定です。

@ousttrue ousttrue modified the milestones: v0.57, v0.59 Aug 11, 2020
@ousttrue ousttrue modified the milestones: v0.59, v0.60 Aug 28, 2020
@ousttrue
Copy link
Contributor

ousttrue commented Sep 1, 2020

v0.59.0 で増えてしまった。

Assets\VRM\UniVRM\Editor\SkinnedMeshUtility\SkinnedMeshUtility.cs(24,40): warning CS0618: 'PrefabUtility.GetPrefabType(Object)' is obsolete: 'Use GetPrefabAssetType and GetPrefabInstanceStatus to get the full picture about Prefab types.'

@ousttrue ousttrue modified the milestones: v0.60, v0.61 Sep 14, 2020
ousttrue added a commit to ousttrue/UniVRM that referenced this issue Sep 24, 2020
ousttrue added a commit to ousttrue/UniVRM that referenced this issue Sep 29, 2020
@ousttrue ousttrue mentioned this issue Sep 29, 2020
@ousttrue ousttrue closed this as completed Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants