Educator Hub
  • Sidebar node image
    tutorial
    Create a rotating collectible
Unity Version: 6.0
Change
Steps
  • 1 Overview
  • 2 Add a collectible GameObject in front of the player
  • 3 Create and apply a new Collectible script
  • 4 Review the structure of the default script
  • 5 Plan your rotation code
  • 6 Add your first line of code to rotate the collectible
  • 7 Reduce speed to a decimal float value
  • 8 Declare new rotation speed variable
  • 9 Review and proceed to next tutorial
  • You finished!

Unity Version 6.0

Other versions available

Continue

Don’t have a compatible version?

Install a new version from the Unity Hub

Language
Social
Learning
  • Pathways
  • Courses
  • Projects
  • Tutorials
  • Educator Hub
Education Plans
  • Students
  • Educators
  • Institutions
  • Certifications
Resources
  • Unity Asset Store
  • Community
  • Documentation
  • Unity FAQ
  • Learn FAQ
Unity
  • Unity.com
  • Newsletter
  • Blog
  • Events
  • Unity Play
Copyright © 2026 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.