- Home /
Question by
PersianKiller · Aug 06, 2017 at 01:08 PM ·
c#beginnersavepicture
how could take a picture of scene and save it?
I created a save and load function and they work fine I Just want when I'm saving ,a screenshot of scene saves on my pc and when I'm want to load it I can see it , any idea?
void OnTriggerEnter2D(Collider2D other){
if (other.name == "player") {
score = PlayerPrefs.GetInt ("EMTIAZ");
playerHealth = PlayerPrefs.GetInt ("PLAYERHEALTH");
Maxhealth = PlayerPrefs.GetInt ("MAXHEALTH");
Lives = PlayerPrefs.GetInt ("LIFE");
}
}
public void LOAD(){
SceneManager.LoadScene ("sceneName");
score = PlayerPrefs.GetInt ("EMTIAZ");
playerHealth = PlayerPrefs.GetInt ("PLAYERHEALTH");
Maxhealth = PlayerPrefs.GetInt ("MAXHEALTH");
Lives = PlayerPrefs.GetInt ("LIFE");
Time.timeScale = 1;
}
it's my code.I also don't know how to get name of current scene.
Comment
Best Answer
Answer by $$anonymous$$ · Aug 06, 2017 at 01:41 PM
Similar Question Here, And Answered:
http://answers.unity3d.com/questions/22954/how-to-save-a-picture-take-screenshot-from-a-camer.html
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Saving Player Data 3 Answers
Distribute terrain in zones 3 Answers
How to make objects spawn at the same time without colliding ? 1 Answer
Filestream/SaveManager 2 Answers