Answers for "unity unfreeze position in script"

C#
0

unity unfreeze position in script

using UnityEngine;

public class FreezePosition : MonoBehaviour
{
    public GameObject TheThingToFreeze;
  	
    public void	Start()
    {
    	TheThingToFreeze.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.None;  
    }
    
}
Posted by: Guest on February-26-2021

C# Answers by Framework

Browse Popular Code Answers by Language