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

Disable AnimatorParserDebugWindow if VRCSDK is not present #625

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

kaikoga
Copy link
Contributor

@kaikoga kaikoga commented Oct 19, 2023

Related Issue: #607

I have to do something with AnimatorParserDebugWindow because it contains VRCAvatarDescriptor reference, however I don't know exactly how to deal with it.

Case A:

This debug tool is useful for AAO users, so it is supposed work without VRCSDK.
ParserSource.WholeAvatar should accept something like Animator or Transform for users who wants to edit non-VRChat avatars on projects with VRCSDK. (Warning: this is a breaking change for users with VRCSDK)

Case B:

This is just a utility debug tool for AAO developers, so it can be safely removed if VRCSDK is not present (this PR).

Case C:

This debug tool is legacy and would be immediately demolished. 🤯


Any thoughts?

@kaikoga kaikoga changed the title chore: disable AnimatorParserDebugWindow without VRCSDK chore: Disable AnimatorParserDebugWindow without VRCSDK Oct 19, 2023
@kaikoga kaikoga changed the title chore: Disable AnimatorParserDebugWindow without VRCSDK Disable AnimatorParserDebugWindow if VRCSDK is not present Oct 19, 2023
@kaikoga kaikoga marked this pull request as ready for review October 19, 2023 13:28
@anatawa12
Copy link
Owner

頭回ってないんで日本語で言います。

DebugTool、AAO Developerのためのやつではあるんですがtest以下等ではない理由はユーザの環境の結果を取ってバグを検討するためなのでAのほうが嬉しい。

デバック関連の細かい機能はSemver対象外のつもり。(これドキュメントすべきだな。)

@kaikoga
Copy link
Contributor Author

kaikoga commented Oct 19, 2023

Thank you for your comment.

I would force push this PR with Case A, taking the GameObject route because the behaviour would match with other ParserSource modes.

@kaikoga kaikoga force-pushed the wrap_anim_parser_debug_window branch from dc3e7cb to fdd928e Compare October 19, 2023 16:01
Comment on lines +18 to 19
public GameObject avatar;
public GameObject rootGameObject;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AvatarもGameObjectだしrootGameObject共有していい気がします

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最初はそう思ったのですが、 rootGameObject はシーン置きのオブジェクトを受け付けない一方で avatar はプレハブを受け付けない(プレハブを受け付けるように改修することはできるがこのPRのスコープ外)ので、セマンティクスが異なると思います。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

明確な理由ないし別にObjectFieldのところでtrue / false揃ってる必要もあんまない(とくにdebug画面なので)なと思ってるのですがまぁOK

@anatawa12 anatawa12 merged commit 61612a5 into anatawa12:master Oct 21, 2023
5 checks passed
@kaikoga kaikoga deleted the wrap_anim_parser_debug_window branch October 26, 2023 19:44
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

Successfully merging this pull request may close these issues.

2 participants