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. Dismiss Notice

Save Load Simple Issue

Discussion in 'Scripting' started by Altanin, Aug 28, 2020.

  1. Altanin

    Altanin

    Joined:
    Jul 21, 2020
    Posts:
    15



    So I'm following Brackey's tutorial for implementing save/load options in my game however, it does not seem to be working in my game. I am not using the canvas he has where you can see the values change upon save and load so I'm just mainly focused for now on the fact that my Player will not teleport to the XYZ positions on load (after I've saved in a different spot.

    The way I am saving is I created a pause menu with save and load buttons however once I have dragged in the player (with the player script attached) the save and load button (or atleast the load) will not change my position where I last clicked save. any ideas?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    Why on earth would you ever forego this important debugging feature?

    At least use Debug.Log() and find out which parts of your code are even running, and what kind of data is coming through it!
     
    eses and Yoreki like this.
  3. Yoreki

    Yoreki

    Joined:
    Apr 10, 2019
    Posts:
    2,587
    Adding to what @Kurt-Dekker said, how are you even expecting us to help you? You posted a video with code that's working properly. We wont be able to find your problem in the tutorial code, even if we tried.
     
    Bunny83, Kurt-Dekker and eses like this.