插件下载
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ZYF
{
public class KeepRelativeRestDemo : MonoBehaviour
{
public GameObject asChild;
public GameObject asParent;
private void OnEnable()
{
asChild.AddKeepRelativeRestBind(asParent);
}
private void OnDisable()
{
asChild.RemoveKeepRelativeRestBind();
}
}
}