当前位置:网站首页>Unity 的序列化
Unity 的序列化
2022-06-24 06:44:00 【Kenight_】
经过 Serialize (序列化) 的 class 或 attribute 的值会被保存成二进制文件,在 Unity 中可序列化的 attribute 将在 Inspector 显示出来
继承 MonoBehavior 的情况下
class 与 public attribute 都是被视为可序列化的
private attribute 被视为不可序列化的,可通过 SerializeField 强制序列化
未继承 MonoBehavior 的情况下
class 与 public attribute 都不被 unity 视为可序列化的
可通过 System.Serializable 序列化 class
对于被 Serializable 的 class 的 public attribute 被视为可序列化的,而 private attribute 则任然是不可序列化的 (通过 SerializeField 强制序列化)
边栏推荐
- Canal installation configuration
- [equalizer] bit error rate performance comparison simulation of LS equalizer, def equalizer and LMMSE equalizer
- [WUSTCTF2020]爬
- A summary of the posture of bouncing and forwarding around the firewall
- Actual target shooting - skillfully use SMB to take down the off-line host
- Knowledge points of 2022 system integration project management engineer examination: ITSS information technology service
- The first common node of two linked lists_ The entry of the link in the linked list (Sword finger offer)
- What is a CC attack? How to judge whether a website is attacked by CC? How to defend against CC attacks?
- Global and Chinese market of anion sanitary napkins 2022-2028: Research Report on technology, participants, trends, market size and share
- L2TP connection failure guide in VPN
猜你喜欢

阿里云全链路数据治理

Win10 build webservice

现货黄金有哪些值得借鉴的心态

How to connect the Bluetooth headset to the computer and how to connect the win10 computer to the Bluetooth headset

How to open the soft keyboard in the computer, and how to open the soft keyboard in win10

与(&&)逻辑或(||),动态绑定结合三目运算

Ultra wideband pulse positioning scheme, UWB precise positioning technology, wireless indoor positioning application

软件性能测试分析与调优实践之路-JMeter对RPC服务的性能压测分析与调优-手稿节选

get_ started_ 3dsctf_ two thousand and sixteen
![[image fusion] image fusion based on NSST and PCNN with matlab code](/img/b4/61a5adde0d0bfc5a339ef8ab948d43.png)
[image fusion] image fusion based on NSST and PCNN with matlab code
随机推荐
[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog
[DDCTF2018](╯°□°)╯︵ ┻━┻
Only two lines are displayed, and the excess part is displayed with Ellipsis
buuctf misc [UTCTF2020]docx
前缀和专题训练
Several misunderstandings of VPN
MFC multithreaded semaphore csemaphore critical area and mutually exclusive events
jarvisoj_level2
How can genetic testing help patients fight disease?
New ways to play web security [6] preventing repeated use of graphic verification codes
buuctf misc 从娃娃抓起
[image fusion] image fusion based on pseudo Wigner distribution (PWD) with matlab code
bjdctf_2020_babystack
L2tp/ipsec one click installation script
Global and Chinese market of Earl Grey tea 2022-2028: Research Report on technology, participants, trends, market size and share
[signal recognition] signal modulation classification based on deep learning CNN with matlab code
Virtual machine security disaster recovery construction
Overview of C program operation mechanism
A penetration test of c/s Architecture - Request encryption, decryption and test
[learn FPGA programming from scratch -41]: vision chapter - Moore's era and Moore's law and the arrival of the post Moore Era