📜  unity unfreeze 脚本中的位置 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.686000             🧑  作者: Mango

代码示例1
using UnityEngine;

public class FreezePosition : MonoBehaviour
{
    public GameObject TheThingToFreeze;
      
    public void    Start()
    {
        TheThingToFreeze.GetComponent().constraints = RigidbodyConstraints.None;  
    }
    
}