Avatar
0
tvd12 Enlightened
tvd12 Enlightened
Ýnghĩa của [Serializable] attribute là gì? ...
Ví dụ trong đoạn code này thì [Serializable] attribute có nghĩa là gì? using System; using UnityEngine; public class Player : MonoBehaviour { //Create a custom struct and apply [Serializable] attribute to it [Serializable] public struct PlayerStats { public int movementSpeed; public int hitPoints; public bool hasHealthPotion; } //Make the private field of our ...
Answer