Crate unity_asset_yaml

Crate unity_asset_yaml 

Source
Expand description

Unity Asset YAML Parser

YAML format support for Unity asset parsing, providing a robust and efficient Unity YAML loader based on the mature serde_yaml library.

This crate provides parsing of Unity YAML files while maintaining exact compatibility with Unity’s format.

§Examples

use unity_asset_yaml::serde_unity_loader::SerdeUnityLoader;

let loader = SerdeUnityLoader::new();
let yaml = r#"
GameObject:
  m_Name: Player
  m_IsActive: 1
"#;

let classes = loader.load_from_str(yaml)?;

Re-exports§

pub use serde_unity_loader::SerdeUnityLoader;
pub use unity_yaml_serializer::UnityYamlSerializer;
pub use yaml_document::YamlDocument;

Modules§

class_ids
Common Unity class IDs
class_names
Common Unity class names
constants
Constants for Unity YAML format
python_like_api
Python-like API for Unity YAML parsing
serde_unity_loader
Unity YAML loader based on serde_yaml
unity_yaml_serializer
Unity YAML serializer
yaml_document
YAML-specific Unity document implementation

Structs§

GLOBAL_CLASS_ID_MAP
Global class ID map instance
UnityClass
A Unity class instance
UnityClassIdMap
Unity class ID to name mapping This is a global registry that maps class IDs to class names
UnityClassRegistry
Registry for Unity class types

Enums§

DocumentFormat
Supported Unity document formats
LineEnding
Line ending types
UnityAssetError
Main error type for Unity asset parsing operations
UnityValue
A Unity value that can be stored in a Unity class

Constants§

UNITY_TAG_URI
Unity YAML tag URI
UNITY_YAML_VERSION
Unity YAML version

Type Aliases§

Result
Result type alias for Unity asset operations