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英語
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

ガイド付きプロジェクトの仕組み

ワークスペースは、ブラウザに完全にロードされたクラウドデスクトップですので、ダウンロードは不要です

分割画面のビデオで、講師が手順ごとにガイドします

よくある質問

よくある質問

さらに質問がある場合は、受講者ヘルプセンターにアクセスしてください。