mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 23:18:04 -05:00
rename. prefix to Vrm0x
This commit is contained in:
parent
ee3ce66034
commit
612e04c8e1
|
|
@ -20,7 +20,7 @@ namespace VRM
|
|||
}
|
||||
}
|
||||
|
||||
IVRM0SpringBoneRuntime _springBoneRuntime;
|
||||
IVrm0xSpringBoneRuntime _springBoneRuntime;
|
||||
|
||||
public VRMImporterContext(
|
||||
VRMData data,
|
||||
|
|
@ -28,12 +28,12 @@ namespace VRM
|
|||
ITextureDeserializer textureDeserializer = null,
|
||||
IMaterialDescriptorGenerator materialGenerator = null,
|
||||
ImporterContextSettings settings = null,
|
||||
IVRM0SpringBoneRuntime springboneRuntime = null)
|
||||
IVrm0xSpringBoneRuntime springboneRuntime = null)
|
||||
: base(data.Data, externalObjectMap, textureDeserializer, materialGenerator ?? VrmMaterialDescriptorGeneratorUtility.GetValidVrmMaterialDescriptorGenerator(data.VrmExtension), settings ?? new ImporterContextSettings(false))
|
||||
{
|
||||
_data = data;
|
||||
TextureDescriptorGenerator = new VrmTextureDescriptorGenerator(Data, VRM);
|
||||
_springBoneRuntime = springboneRuntime ?? new VRMSpringBoneDefaultRuntime();
|
||||
_springBoneRuntime = springboneRuntime ?? new Vrm0xSpringBoneDefaultRuntime();
|
||||
}
|
||||
|
||||
#region OnLoad
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ namespace VRM
|
|||
MetaCallback metaCallback = null,
|
||||
ITextureDeserializer textureDeserializer = null,
|
||||
bool loadAnimation = false,
|
||||
IVRM0SpringBoneRuntime springboneRuntime = null
|
||||
IVrm0xSpringBoneRuntime springboneRuntime = null
|
||||
)
|
||||
{
|
||||
if (bytes == null)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using UnityEngine;
|
|||
|
||||
namespace VRM
|
||||
{
|
||||
public interface IVRM0SpringBoneRuntime
|
||||
public interface IVrm0xSpringBoneRuntime
|
||||
{
|
||||
public Task InitializeAsync(GameObject vrm, IAwaitCaller awaitCaller);
|
||||
}
|
||||
|
|
@ -14,7 +14,7 @@ namespace VRM
|
|||
/// FastSpringBoneService に登録します。
|
||||
/// FastSpringBoneService.LateUpdate[DefaultExecutionOrder(11000)] で動作します。
|
||||
/// </summary>
|
||||
public class FastSpringboneRuntime : IVRM0SpringBoneRuntime
|
||||
public class Vrm0xFastSpringboneRuntime : IVrm0xSpringBoneRuntime
|
||||
{
|
||||
public async Task InitializeAsync(GameObject vrm, IAwaitCaller awaitCaller)
|
||||
{
|
||||
|
|
@ -11,7 +11,7 @@ namespace VRM
|
|||
///
|
||||
/// により、各VRMSpringBoneが自力で LateUpdate に動作します。
|
||||
/// </summary>
|
||||
public class VRMSpringBoneDefaultRuntime : IVRM0SpringBoneRuntime
|
||||
public class Vrm0xSpringBoneDefaultRuntime : IVrm0xSpringBoneRuntime
|
||||
{
|
||||
public async Task InitializeAsync(GameObject vrm, IAwaitCaller awaitCaller)
|
||||
{
|
||||
|
|
@ -395,7 +395,7 @@ namespace VRM.SimpleViewer
|
|||
var instance = await VrmUtility.LoadBytesAsync(path, bytes, GetIAwaitCaller(m_useAsync.isOn),
|
||||
materialCallback, metaCallback,
|
||||
loadAnimation: m_loadAnimation.isOn,
|
||||
springboneRuntime: m_useFastSpringBone.isOn ? new FastSpringboneRuntime() : new VRMSpringBoneDefaultRuntime()
|
||||
springboneRuntime: m_useFastSpringBone.isOn ? new Vrm0xFastSpringboneRuntime() : new Vrm0xSpringBoneDefaultRuntime()
|
||||
);
|
||||
|
||||
instance.EnableUpdateWhenOffscreen();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user