Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

rotate gameobject unity

Transform.Rotate(Vector3 eulers)
// you can add relativeTo=Space.Self for it to rotate arround itself or do
// relativeTo=Space.World to rotate relative to the scene
// https://docs.unity3d.com/ScriptReference/Transform.Rotate.html
Source by vionixstudio.com #
 
PREVIOUS NEXT
Tagged: #rotate #gameobject #unity
ADD COMMENT
Topic
Name
8+8 =