Comments

  • The TransformDataBinary class is the serializable primitive object storing the raw transform data extracted from the transform component. This consists of float variables used for storing position (X, Y, and Z), as well as rotation (Euler angles), and scale.
  • The two C# namespaces,--System.Runtime.Serialization.Formatters.Binary and System.IO--must be included to use binary files and Serialization.
  • The DataArray member of the TransformCollectionBinary class represents a sequential list of TransformDataBinary structures, each defining the transform for a unique game object. As with the previous two methods, each object in the scene should have a unique name.
  • The Awake function retrieves a static list of all transform components in ...

Get Mastering Unity 2017 Game Development with C# - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.