Unity Object Fundamentals
summary
Explains UnityEngine.Object’s dual-representation: a native object paired with a C# instance via a 32-bit instance ID (positive for file-loaded assets, negative for runtime objects), plus native GC handles and C# raw pointers that cause the well-known fake-null behavior. Covers Editor Asset GC (mark-and-sweep that pauses managed threads), Unity’s serialization formats (YAML, unsafe layout-dependent binary, and safe binary with Type3 metadata) and tools (webextract, binary2text) for inspection. Describes background loading architecture (preload manager and async read threads) and how remappers, preload tables and AssetBundle unload rules decide whether objects are reused or forcibly destroyed.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:29What is Unity Object
- 5:17Unity Object basics
- 7:44Object lifecycle
- 10:31Asset garbage collection
- 13:21Scene file serialization
- 21:30Serialization rules
- 23:56Serialization timing
- 29:10Serialization formats
- 32:38Type 3 improvements
- 34:02Binary analysis tools
- 38:38Asset bundle structure
- 41:07Asset bundle lifecycle
- 44:16Async loading
- 47:06Closing remarks
