11000+款5星资源
8.5万+用户参与评分
10万+社区成员鼎力支持
每款资源都经过 Unity 审核
显示 1 - 10 of 32
用户评论
排序
Im on Unity 2019 but when I install the asset and add the line "using YamlDotNet.Serialization;" it says "The type or namespace name 'YamlDotNet' could not be found (are you missing a using directive or an assembly reference?)"...
这条评论是否有帮助?
0
2
来自发布商的回复:
回复时间 2 years ago
It seems like Unity or the asset store has changed how they work. When I try this with 2019, I still get packages that were loaded with versions that are older. This is an error on Unity's side, because I have the compatible package uploaded with unity 2019, it's just not getting downloaded.
What you can do to get the old version, that is compatible with 2019, is to add this to your manifest.json
"scopedRegistries": [
{
"name": "Rain Office",
"url": "https://office.rain-games.com:4873",
"scopes": [
"yamldotnet"
]
}
],
The package manager should then suggest the 6.1.2 version to you.
But this package doesn't have examples, and it isn't referenced by the default assembly, so you will have to manually reference 'YamlDotNet.asmdef' to be able to use it. You can probably steal examples from the new package (on asset store, or downloaded with newer 2020.3 Unity).
I hope that helps.. at least in theory you should be able to work around the asset store and use YamlDotNet with 2019 this way.
V
Easy integration
2 years ago
VenetianFox基于上一个版本 12.3.1
Managing the DLLs of external C# libraries is too much of a pain, and this integrates nicely for me needs to parse YAML files.
这条评论是否有帮助?
0
0
w
Analysis of Unity Component
2 years ago
wechat_os_Qy0zSBKZexetyZxGOtkqNCdjc基于上一个版本 12.3.1
Has the author considered providing parsing for Unity Component, such as serializing Transform, just like *. prefab in Unity, users can also read yaml in *. prefab to deserialize it into Transform
这条评论是否有帮助?
1
0
来自发布商的回复:
回复时间 2 years ago
This is the last that I heard of it.
https://github.com/aaubry/YamlDotNet/issues/140
So basically... Unity doesn't follow the yaml standard precisely, and accommodating it without breaking the library isn't trivial.
So you will have to prefilter the unity-yaml a bit before you can work with it.
Not very satisfying, I know, but it's the state of YamlDotNet and Unity at the moment.
It complains about "not supporting" certain features of YAML when tried.
这条评论是否有帮助?
0
1
来自发布商的回复:
回复时间 3 years ago
This package is a free convenience version of the YamlDotNet free and open source library. It can do standard YAML, but sadly, Unity has been outputting non-standard YAML lately, and so the library might be insufficient in certain use cases if they involve assets produced by Unity. For that I can only apologize.
First, make sure
YamlDotNet/YamlDotNet.asmdef properties:
"autoReferenced": true
Then check the file ***.asmdef in your Scripts folder the properties:
"references" have the "YamlDotNet"
and "overrideReferences": true
For example in Assets/Scripts/myCode.asmdef
{
"references": [
"GUID:625bfc588fb96c74696858f2c467e978",
"GUID:b1ef917f7a8a86a4eb639ec2352edbf8",
"GUID:18b61dc105331d14c9d7a5ba828092b6",
"GUID:3f8053c1a58fb7f47b2af9d34d2e4b1e",
"YamlDotNet"
],
"overrideReferences": true,
}
这条评论是否有帮助?
2
0
Can not work on Unity2018,2019.
error:
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.
error CS2007: Unrecognized option: '/nullable:enable'
csc.rsp :-nullable:enable
symbols Not supported
2020 can work
这条评论是否有帮助?
2
0
来自发布商的回复:
回复时间 2 years ago
It seems like Unity or the asset store has changed how they work. When I try this with 2019, I still get packages that were loaded with versions that are older. This is an error on Unity's side, because I have the compatible package uploaded with unity 2019, it's just not getting downloaded.
What you can do to get the old version, that is compatible with 2019, is to add this to your manifest.json
"scopedRegistries": [
{
"name": "Rain Office",
"url": "https://office.rain-games.com:4873",
"scopes": [
"yamldotnet"
]
}
],
The package manager should then suggest the 6.1.2 version to you.
But this package doesn't have examples, and it isn't referenced by the default assembly, so you will have to manually reference 'YamlDotNet.asmdef' to be able to use it. You can probably steal examples from the new package (on asset store, or downloaded with newer 2020.3 Unity).
I hope that helps.. at least in theory you should be able to work around the asset store and use YamlDotNet with 2019 this way.
Unity's JSON library didn't have the functionality I needed for my project, so I gave this library a shot, and it addressed my needs perfectly. I didn't know YAML when I started using it, but now I am a big enthusiast. I have not encountered any issues or bugs with this library.
这条评论是否有帮助?
0
0
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持