Merge branch 'master' into fix/springbone0x_runtime_interface

This commit is contained in:
ousttrue
2024-10-08 17:36:54 +09:00
committed by GitHub

View File

@@ -119,15 +119,24 @@ namespace UniVRM10
{
if (m_springBoneRuntime == null)
{
// シーン配置モデルが play された
var provider = GetComponent<IVrm10SpringBoneRuntimeProvider>();
if (provider != null)
{
// 明示的カスタマイズ
m_springBoneRuntime = provider.CreateSpringBoneRuntime();
}
else
{
// deafult に fallback
m_springBoneRuntime = new Vrm10FastSpringboneRuntime();
if (Application.isEditor)
{
m_springBoneRuntime = new Vrm10FastSpringboneRuntimeStandalone();
}
else
{
m_springBoneRuntime = new Vrm10FastSpringboneRuntime();
}
}
m_springBoneRuntime.InitializeAsync(this, new ImmediateCaller());
}