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
- Unity
Class - A Unity class instance
- Unity
Class IdMap - Unity class ID to name mapping This is a global registry that maps class IDs to class names
- Unity
Class Registry - Registry for Unity class types
Enums§
- Document
Format - Supported Unity document formats
- Line
Ending - Line ending types
- Unity
Asset Error - Main error type for Unity asset parsing operations
- Unity
Value - 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