Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Example

Discussion in 'Getting Started' started by adem062336, Mar 14, 2019.

  1. adem062336

    adem062336

    Joined:
    Mar 14, 2019
    Posts:
    1
    Create a method called SavePosition() to save position of game object when Button ‘S’ is
    pressed. Create a method called LoadPosition(), to get the saved position of the game object when
    the game is started.

    Can you help me?
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Use PlayerPrefs for this.

    And next time, please use a descriptive topic title (like "How to save and load object position?" in this case). Also, this is not a Feedback issue, so don't use the Feedback tag. (Usually there is no appropriate tag — just ignore those.)

    Have fun, and welcome to Unity!
     
    Kiwasi, Ryiah and Joe-Censored like this.