Save Game Settings with PlayerPrefs in Unity

提供方
Coursera Project Network
在此指導項目中,您將:

Become familiar with Unity's built-in PlayerPrefs.

Use PlayerPrefs to store string, integer, floating and boolean values.

Write C# scripts that save, load and delete PlayerPrefs keys and values.

Clock1.5 hours
Beginner初級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this one-hour, project-based course, you'll learn how to use Unity's built-in Player Preferences to store, load, and reset your game's data. You'll learn the different ways in creating clean code when it comes to manipulating the game's data, using Inheritance and Abstraction. You'll also learn the types of data Player Prefs consider and how we can use them to expand the data to manipulate. The guided project will introduce you to the following Unity concepts: - Player Preferences - Inheritance - Abstraction This project also makes use of the sci fi-themed Unity project created in Create UI in Unity Part 3 - Settings Menu. This compliments this guided project and, although not a prerequisite, is recommended for a more well-rounded understanding of the concepts presented herein. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培養的技能

  • Video-game Development
  • C sharp (C#) Programming Language
  • Unity 3D
  • Unity
  • Application development

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Introduction and License Activation

  2. Save Player Name

  3. Save and Load Any String

  4. Save and Load Any Float

  5. Auto-Configure the SaveablePreference Module

  6. Centralize the Load/Save Function

  7. Create an Abstract Parent Component

  8. Save and Load any Boolean

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心