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

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心