📅  最后修改于: 2022-03-11 14:48:41.686000             🧑  作者: Mango
using UnityEngine;
public class FreezePosition : MonoBehaviour
{
public GameObject TheThingToFreeze;
public void Start()
{
TheThingToFreeze.GetComponent().constraints = RigidbodyConstraints.None;
}
}