mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-28 05:44:48 -05:00
typo rename UnityObjectDestoyer to UnityObjectDestroyer
This commit is contained in:
@@ -344,7 +344,7 @@ namespace UniGLTF
|
||||
{
|
||||
foreach (var x in Meshes)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(x.Mesh);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(x.Mesh);
|
||||
}
|
||||
Meshes.Clear();
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace UniGLTF
|
||||
Debug.Log("UnityResourceDestroyer.OnDestroy");
|
||||
foreach (var (_, obj) in _resources)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(obj);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(obj);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ namespace UniGLTF
|
||||
{
|
||||
if (this != null && this.gameObject != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(this.gameObject);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(this.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace VRM
|
||||
var root = loaded.Root;
|
||||
|
||||
// Remove RuntimeGltfInstance component before saving as a prefab.
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(loaded);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(loaded);
|
||||
|
||||
// Create or update Main Asset
|
||||
if (m_prefabPath.IsFileExists)
|
||||
@@ -164,7 +164,7 @@ namespace VRM
|
||||
}
|
||||
|
||||
// destroy GameObject on scene
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(root);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(root);
|
||||
|
||||
foreach (var x in m_paths)
|
||||
{
|
||||
|
||||
@@ -361,23 +361,23 @@ namespace VRM
|
||||
// VRM specific
|
||||
if (HumanoidAvatar != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(HumanoidAvatar);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(HumanoidAvatar);
|
||||
}
|
||||
if (Meta != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(Meta);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(Meta);
|
||||
}
|
||||
if (AvatarDescription != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(AvatarDescription);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(AvatarDescription);
|
||||
}
|
||||
if (BlendShapeAvatar != null)
|
||||
{
|
||||
foreach (var clip in BlendShapeAvatar.Clips)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(clip);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(clip);
|
||||
}
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(BlendShapeAvatar);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(BlendShapeAvatar);
|
||||
}
|
||||
|
||||
base.Dispose();
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace UniVRM10
|
||||
{
|
||||
if (ct.IsCancellationRequested)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(instance.gameObject);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(instance.gameObject);
|
||||
ct.ThrowIfCancellationRequested();
|
||||
}
|
||||
return instance;
|
||||
@@ -164,7 +164,7 @@ namespace UniVRM10
|
||||
{
|
||||
if (ct.IsCancellationRequested)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(migratedInstance.gameObject);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(migratedInstance.gameObject);
|
||||
ct.ThrowIfCancellationRequested();
|
||||
}
|
||||
return migratedInstance;
|
||||
|
||||
@@ -821,19 +821,19 @@ namespace UniVRM10
|
||||
// VRM specific
|
||||
if (m_humanoid != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(m_humanoid);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(m_humanoid);
|
||||
m_humanoid = null;
|
||||
}
|
||||
|
||||
if (m_vrmObject != null)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(m_vrmObject);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(m_vrmObject);
|
||||
m_vrmObject = null;
|
||||
}
|
||||
|
||||
foreach (var (preset, clip) in m_expressions)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(clip);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(clip);
|
||||
}
|
||||
m_expressions.Clear();
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ namespace UniVRM10.VRM10Viewer
|
||||
ct: cancellationToken);
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(vrm10Instance.gameObject);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(vrm10Instance.gameObject);
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace VRMShaders
|
||||
{
|
||||
foreach (var kv in _runtimeClips)
|
||||
{
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(kv.Value);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(kv.Value);
|
||||
}
|
||||
_runtimeClips.Clear();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace VRMShaders
|
||||
#if VRM_DEVELOP
|
||||
// Debug.Log($"Destroy {x.Asset}");
|
||||
#endif
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(x.Asset);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(x.Asset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,8 +114,8 @@ namespace VRMShaders
|
||||
// したがって合成後の Texture に Sampler Param を設定する必要があるが、エッジケースで不整合な結果になる可能性がある.
|
||||
combinedTexture.SetSampler(texDesc.Sampler);
|
||||
_textureCache.Add(subAssetKey, combinedTexture);
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(metallicRoughnessTexture);
|
||||
UnityObjectDestoyer.DestroyRuntimeOrEditor(occlusionTexture);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(metallicRoughnessTexture);
|
||||
UnityObjectDestroyer.DestroyRuntimeOrEditor(occlusionTexture);
|
||||
return combinedTexture;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
namespace VRMShaders
|
||||
{
|
||||
public static class UnityObjectDestoyer
|
||||
public static class UnityObjectDestroyer
|
||||
{
|
||||
public static void DestroyRuntimeOrEditor(UnityEngine.Object o)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user