Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity unfreeze position in script

using UnityEngine;

public class FreezePosition : MonoBehaviour
{
    public GameObject TheThingToFreeze;
  	
    public void	Start()
    {
    	TheThingToFreeze.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.None;  
    }
    
}    
 
PREVIOUS NEXT
Tagged: #unity #unfreeze #position #script
ADD COMMENT
Topic
Name
9+3 =