Created YamlObject class for objects defined through YAML like prefabs and components.