using UnityEngine; using UnityAtoms.BaseAtoms; namespace UnityAtoms.Examples { /// /// Script to sync the Vector3 Variable with this GameObject's current position. /// public class SyncPositionWithVariable : MonoBehaviour { [SerializeField] private Vector3Reference _reference; void LateUpdate() { _reference.Value = transform.position; } } }