Files
SimUL/Assets/UMA/Core/Scripts/UMALODLogger.cs
T
2025-01-07 18:54:46 +02:00

42 lines
1.1 KiB
C#

using UMA.CharacterSystem;
using UnityEngine;
namespace UMA
{
public class UMALODLogger : MonoBehaviour
{
public DynamicCharacterAvatar avatar;
public string slotID;
public string lastLOD;
// Update is called once per frame
void Update()
{
if (avatar != null)
{
if (avatar.umaData != null && avatar.umaData.umaRecipe != null)
{
var slots = avatar.umaData.umaRecipe.slotDataList;
for (int i = 0; i < slots.Length; i++)
{
SlotData slot = slots[i];
if (slot != null)
{
if (slot.slotName != null)
{
if (slot.slotName.ToLower().Contains(slotID.ToLower()))
{
lastLOD = slot.slotName;
}
}
}
}
}
}
}
}
}