「Unity/MessagePack」の版間の差分
ナビゲーションに移動
検索に移動
編集の要約なし |
|||
| 26行目: | 26行目: | ||
"com.neuecc.messagepack": "https://github.com/neuecc/MessagePack-CSharp.git?path=src/MessagePack.UnityClient/Assets/Scripts/MessagePack#v2.6.100-alpha", | "com.neuecc.messagepack": "https://github.com/neuecc/MessagePack-CSharp.git?path=src/MessagePack.UnityClient/Assets/Scripts/MessagePack#v2.6.100-alpha", | ||
</pre> | </pre> | ||
==="namespace name 'NET' does not exist"エラーが出る時=== | |||
error CS0234: The type or namespace name 'NET' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) | |||
↓の手順で、Microsoft.NET.StringToolsをインストールする | |||
===nugetでMicrosoft.NET.StringToolsインストール=== | ===nugetでMicrosoft.NET.StringToolsインストール=== | ||
unityメイン/Edit/ProjectSettings/PackageManagerから以下を追加 | unityメイン/Edit/ProjectSettings/PackageManagerから以下を追加 | ||
<pre> | |||
Name: Unity NuGet | Name: Unity NuGet | ||
URL: https://unitynuget-registry.azurewebsites.net | URL: https://unitynuget-registry.azurewebsites.net | ||
Scope(s): org.nuget | Scope(s): org.nuget | ||
</pre> | |||
unityメイン/PackageManager/MyRegistoryでMicrosoft.NET.StringTools検索してインストール | unityメイン/PackageManager/MyRegistoryでMicrosoft.NET.StringTools検索してインストール | ||
2024年12月22日 (日) 07:16時点における版
MessagePackとは
効率の良いバイナリ形式のオブジェクト・シリアライズ フォーマット
公式:https://msgpack.org/ja.html
c#のPackage
5つある C# msgpack C# ymofen C# caesay C# mlsomers C# neuecc
neueccのMessagePack導入
neuecc https://github.com/MessagePack-CSharp/MessagePack-CSharp
PackageManagerのgiturlに
https://github.com/neuecc/MessagePack-CSharp.git?path=src/MessagePack.UnityClient/Assets/Scripts/MessagePack#v2.6.100-alpha
を追加。
もしくは、Packages/manifest.jsonに以下を追加
{
"dependencies": {
"com.neuecc.messagepack": "https://github.com/neuecc/MessagePack-CSharp.git?path=src/MessagePack.UnityClient/Assets/Scripts/MessagePack#v2.6.100-alpha",
"namespace name 'NET' does not exist"エラーが出る時
error CS0234: The type or namespace name 'NET' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
↓の手順で、Microsoft.NET.StringToolsをインストールする
nugetでMicrosoft.NET.StringToolsインストール
unityメイン/Edit/ProjectSettings/PackageManagerから以下を追加
Name: Unity NuGet URL: https://unitynuget-registry.azurewebsites.net Scope(s): org.nuget
unityメイン/PackageManager/MyRegistoryでMicrosoft.NET.StringTools検索してインストール