Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How would i make a script that allows the player to pickup and hold a game object?

Discussion in 'Scripting' started by TheElectricWolf, Jan 12, 2023.

  1. TheElectricWolf

    TheElectricWolf

    Joined:
    Aug 12, 2021
    Posts:
    10
    I have a simple 3d platformer with objects that have physics. How would i make a script to pickup up the game object and then put it back down?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,954
    You could start here:
    Screen Shot 2023-01-12 at 12.15.26 PM.png
     
    TheElectricWolf likes this.
  3. TheElectricWolf

    TheElectricWolf

    Joined:
    Aug 12, 2021
    Posts:
    10