org.nuget.system.memory is a package (with dependencies) that hosting on UnityNuGet registry https://unitynuget-registry.openupm.com/
com.example.nuget-consumer is an example package that depends on org.nuget.system.memory.
OpenUPM uplinks to the UnityNuGet registry, so you can install all org.nuget dependencies directly via OpenUPM registry.
Install com.example.nuget-consumer via openupm-cli
$ openupm install com.example.nuget-consumer
notice manifest added [email protected]
notice please open Unity project to apply changesPackages/manifest.json changes:
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.example.nuget-consumer",
"org.nuget.system.buffers",
"org.nuget.system.memory",
"org.nuget.system.numerics.vectors",
"org.nuget.system.runtime.compilerservices.unsafe"
]
}
Notice that org.nuget.system.memory was added to scopes along with its dependencies, to help Unity finds all dependencies.
If Unty prompts
Assembly 'Packages/org.nuget.system.memory/System.Memory.dll' will not be loaded due to errors:
System.Memory references strong named System.Buffers Assembly references: 4.0.2.0 Found in project: 4.0.3.0.
Assembly Version Validation can be disabled in Player Settings "Assembly Version Validation"
Follow the instruction to disable Player Settings' Assembly Version Validation.
For some uplink integration limitations the org.nuget.system.memory will be invisible in PacMan's "My Registries" section, but visible in the "In Project" section.



