modular-avatar/Runtime/ModularAvatarReplaceObject.cs

17 lines
514 B
C#
Raw Normal View History

2023-07-23 13:22:25 +08:00
using UnityEngine;
namespace nadena.dev.modular_avatar.core
{
[AddComponentMenu("Modular Avatar/MA Replace Object")]
[DisallowMultipleComponent]
[HelpURL("https://modular-avatar.nadena.dev/docs/reference/replace-object?lang=auto")]
2023-07-23 13:22:25 +08:00
public class ModularAvatarReplaceObject : AvatarTagComponent
{
public AvatarObjectReference targetObject = new AvatarObjectReference();
2023-08-05 14:47:03 +08:00
public override void ResolveReferences()
2023-08-05 14:47:03 +08:00
{
targetObject?.Get(this);
}
2023-07-23 13:22:25 +08:00
}
}