unity how to change rotation

Code Example - unity how to change rotation

                
                        transform.eulerAngles = new Vector3(0f, 180f, 0f); //rotates 180 degrees
                    
                
 

how to chagne rotation in unity

                        
                                transform.eulerAngles = new Vector3(0f, 180f, 0f); // rotates 180 degrees
                            
                        
 

Related code examples