Save Game Settings with PlayerPrefs in Unity

ofrecido por
Coursera Project Network
En este Proyecto guiado, tú:

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
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

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.

Habilidades que desarrollarás

Video-game DevelopmentC sharp (C#) Programming LanguageUnity 3DUnityApplication development

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  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

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.