chore: initialize standalone UPM package
Publish UPM package / publish (push) Failing after 1s

This commit is contained in:
2026-08-26 02:50:43 +08:00
commit 1180be88a6
72 changed files with 3331 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
using UnityEngine;
namespace ShrinkTutorial
{
public class ShrinkTutorialAnchor : MonoBehaviour
{
[SerializeField] private string anchorId = string.Empty;
public string AnchorId => anchorId;
public void SetAnchorId(string value)
{
anchorId = value ?? string.Empty;
if (isActiveAndEnabled)
ShrinkTutorialAnchorRegistry.Register(this);
}
private void OnEnable()
{
ShrinkTutorialAnchorRegistry.Register(this);
}
private void OnDisable()
{
ShrinkTutorialAnchorRegistry.Unregister(this);
}
private void OnValidate()
{
if (!Application.isPlaying)
return;
ShrinkTutorialAnchorRegistry.Register(this);
}
}
}