diff --git a/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeKey.cs b/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeKey.cs index 330734afc..7a2f63a75 100644 --- a/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeKey.cs +++ b/Assets/VRM/UniVRM/Scripts/BlendShape/BlendShapeKey.cs @@ -1,19 +1,23 @@ using System; using System.Collections.Generic; -using System.Diagnostics; - namespace VRM { [Serializable] public struct BlendShapeKey : IEquatable, IComparable { - // Enum.ToString() のGC回避用キャッシュ + /// + /// Enum.ToString() のGC回避用キャッシュ + /// private static readonly Dictionary m_presetNameDictionary = new Dictionary(); + + /// + /// BlendShapePresetと同名の名前を持つ独自に追加したBlendShapeを区別するためのprefix + /// private static readonly string UnknownPresetPrefix = "Unknown_"; - + private string m_name; public string Name @@ -24,6 +28,7 @@ namespace VRM public BlendShapePreset Preset; string m_id; + string ID { get @@ -81,12 +86,12 @@ namespace VRM public override string ToString() { - return ID.Replace(UnknownPresetPrefix,"").ToUpper(); + return ID.Replace(UnknownPresetPrefix, "").ToUpper(); } public bool Equals(BlendShapeKey other) { - return this.ID == other.ID; + return ID == other.ID; } public override bool Equals(object obj) @@ -131,4 +136,4 @@ namespace VRM return 0; } } -} \ No newline at end of file +}