mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 23:18:04 -05:00
[1.0] Scene配置モデルのDefaultSpringBone を Vrm10FastSpringboneRuntimeStandalone に変更
This commit is contained in:
parent
3a492d79c1
commit
86e0999a58
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user