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

[VRM0][Importer]IVrm0XSpringBoneRuntime #2435

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

ousttrue
Copy link
Contributor

@ousttrue ousttrue commented Sep 19, 2024

importer で SpringBone の runtime 実行システムをスイッチするインタフェース。

TODO

  • vrm-0.x の Job かつ Singleton でない バージョン。各 VRMSpringBone の Update ではなく Root から Update するタイプ。

関連して root に Vrm0xSpringBoneRuntime を新設予定。

#2420

で作った UseRuntimeScalingSupport の置き場所もこっちに移動予定。

TODO

  • vrm-1.0 バージョン

VRM-1.0 は FastSpring ボーン1種類しかないので、試しに Job かつ Singleton じゃない バージョンを作ってスイッチできるようにする。

@ousttrue ousttrue changed the title [VRM0][Importer]IVRM0SpringBoneRuntime [VRM0][Importer]IVrm0xSpringBoneRuntime Sep 19, 2024
@ousttrue ousttrue changed the title [VRM0][Importer]IVrm0xSpringBoneRuntime [VRM0][Importer]IVrm0XSpringBoneRuntime Sep 19, 2024
var instance = await VrmUtility.LoadBytesAsync(path, bytes, GetIAwaitCaller(m_useAsync.isOn),
materialCallback, metaCallback,
loadAnimation: m_loadAnimation.isOn,
springboneRuntime: m_useFastSpringBone.isOn ? new Vrm0XFastSpringboneRuntime() : new Vrm0XSpringBoneDefaultRuntime()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Springをスイッチする新引数

Copy link
Contributor

@Santarh Santarh left a comment

Choose a reason for hiding this comment

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

Runtime はよさそうですが
非 Play 時の Editor Import で余計な Component や GameObject が生成されたりしなければよさそう

@ousttrue ousttrue merged commit c840dcb into vrm-c:master Sep 20, 2024
1 check passed
@ousttrue ousttrue deleted the feature/vrm0_springbone_runtime branch September 20, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants