My project is an interactive space simulation, where you can explore and interact with the planets and asteroids. Players can click on planets to view their mass, or they can destroy asteroids by clicking on them. They can also customize the planets by changing their size using a slider, or hide them using a checkbox.


  1. Features:

Feature 1: Display Mouse Position

  • Input: Mouse location
  • Process: Capture the mouse's X and Y coordinates and display them on the screen.
  • Output: Text showing the X and Y position of the mouse appears on the screen.

Feature 2: Display Planet Mass When It's Clicked

  • Input: Mouse click on a planet
  • Process: Detect when a planet is clicked, and display the mass on the UI.
  • Output: The mass of the clicked planet is shown on the screen.

Feature 3: Destroy Asteroid When It's Clicked

  • Input: Mouse click on an asteroid
  • Process: Detect the click on an asteroid object and trigger its destruction.
  • Output: The asteroid disappears when clicked.

Feature 4: Change Planet's Scale Using Slider

  • Input: Slider value
  • Process: Use the slider to adjust the planet's size by scaling its Transform based on the slider’s value.
  • Output: The planet's size changes in real-time as the slider is moved.

Feature 5: Hide or Show Planets Using Checkbox

  • Input: Checkbox state (checked/unchecked)
  • Process: Toggle the visibility of planets based on the checkbox state.
  • Output: Planets are either visible or hidden depending on the checkbox.