About 153,000 results
Open links in new tab
  1. How Unity uses serialization

    Unity can serialize everything that derives from UnityEngine.Object. Unity creates a new GameObject and deserializes the data onto the new GameObject. Unity runs the same …

  2. Serialize Field in Unity (how it works and when to use it)

    Jan 11, 2024 · The Serialize Field attribute forces Unity to serialize a private field, meaning that other scripts can’t access it, but it will show up in the Inspector as if it’s public. This works by …

  3. Manual: Script serialization - Unity

    How you organize data in your Unity project affects how Unity serializes that data, which can have a significant impact on the performance of your project. This page outlines serialization in …

  4. Introduction to Unity Serialization | Serialization | 3.1.2

    Unity Serialization is a general purpose serialization library written entirely in C#. It currently supports JSON and Binary formats. Serialization makes use of the Unity.Properties package …

  5. c# - How to serialize and save a GameObject in Unity - Stack Overflow

    Apr 25, 2016 · You can serialize GameObject as xml. This can serialize GameObject without any problem. It saves the data in human readable format. If you care about security or don't want …

  6. How can i serialize property of c# in Unity - Stack Overflow

    Dec 14, 2022 · Starting in C# 7.3 (which Unity supports), you can now add attributes to the backing fields generated by autoproperties. For this instance, where the backing field is auto …

  7. c# - Why should I use SerializeField? - Stack Overflow

    Nov 7, 2018 · Using the SerializeField attribute causes Unity to serialize any private variable. This doesn't apply to static variables and properties in C#. You use the SerializeField attribute …

  8. [Solved]How to serialize Dictionary with Unity Serialization System

    May 21, 2013 · It uses the ISerializeCallback interface to implement the serialization functionality into a class derived from the Dictionary.

  9. Serialize C# Properties (how-to with code) - Unity Discussions

    Nov 24, 2017 · [field: SerializeField] is pretty useful, as it can be used to serialize properties and expose them in the inspector with minimal boilerplate code. The main benefit it offers over …

  10. Serializing and Deserializing Game Objects in Unity

    Jul 12, 2023 · In this guide, we will explore how to serialize and deserialize GameObjects in Unity using the SerializableGameObject class. This class provides a way to store and restore the …

  11. Some results have been removed