2023-07-23 13:22:25 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace nadena.dev.modular_avatar.core
|
|
|
|
|
{
|
|
|
|
|
[AddComponentMenu("Modular Avatar/MA Replace Object")]
|
|
|
|
|
[DisallowMultipleComponent]
|
2023-10-11 19:40:26 +08:00
|
|
|
|
[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
|
|
|
|
|
2023-09-24 13:44:07 +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
|
|
|
|
}
|
|
|
|
|
}
|