how to make among us clone in unity

Code Example - how to make among us clone in unity

                
                        to make clone of any gameObject you can write this code:-

public GameObject myObject; //this is GameObjectThatYouWantToClone

GameObject Clone = Instantiate(myObject); // now your clone of that gameobject is stored in "Clone" gameObject
                    
                
 

how to clone something unity

                        
                                public GameObject GameOjectYouWantToClone;

GameObject CloneOfGameOject = Instantiate(GameOjectYouWantToClone);
                            
                        
 

Related code examples