2026-05-06 15:07:56 +02:00

29 lines
723 B
C#

using UnityEngine;
using System.Collections;
namespace UMA.Examples
{
/// <summary>
/// Examples of the character building callbacks.
/// </summary>
public class UMATestEventsScript : MonoBehaviour
{
public void CreatedEvent(UMA.UMAData data)
{
Debug.Log(data.name + " Created", data.gameObject);
}
public void DestroyedEvent(UMA.UMAData data)
{
Debug.Log(data.name + " Destoyed", data.gameObject);
}
public void UpdatedEvent(UMA.UMAData data)
{
Debug.Log(data.name + " Updated", data.gameObject);
}
public void SlotAtlasEvent(UMA.UMAData umaData, UMA.SlotData slotData, Material material, Rect atlasRect)
{
Debug.Log(umaData.name + " got slot " + slotData.asset.slotName);
}
}
}