Skip to content

Commit

Permalink
unity.webp 0.3.9 - (libwebp version v1.2.2)
Browse files Browse the repository at this point in the history
- change: use dependency 'org.nuget.system.runtime.compilerservices.unsafe'
  • Loading branch information
netpyoung committed Sep 25, 2022
1 parent 99f180b commit dab6a5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 22 deletions.
30 changes: 10 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,30 @@

choose your preference

### using OpenUPM
### using UPM

using `#{version}` for versioning.

As a shared dependency, this uses the openUPM package `com.system-community.systemruntimecompilerservicesunsafe`, you will need to add it to OpenUPM's scopes, and it will be pulled in by this package.
ex)

```json
``` json
{
"dependencies": {
"com.netpyoung.webp": "0.3.8"
"com.netpyoung.webp": "https://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp#0.3.9",
"org.nuget.system.runtime.compilerservices.unsafe": "6.0.0"
},
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"name": "Unity NuGet",
"url": "https://unitynuget-registry.azurewebsites.net",
"scopes": [
"com.netpyoung.webp",
"com.system-community.systemruntimecompilerservicesunsafe"
"org.nuget"
]
}
]
}
```

### using UPM

using `#{version}` for versioning.

ex)

``` json
"com.netpyoung.webp": "https://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp#0.3.8",
"com.system-community.systemruntimecompilerservicesunsafe": "https://github.com/system-community/SystemRuntimeCompilerServicesUnsafe.git?path=Assets/_Root#6.0.0",

```

## Example

- check [Samples/ directory](https://github.com/netpyoung/unity.webp/tree/master/unity_project/Assets/Samples)
Expand Down
2 changes: 1 addition & 1 deletion unity_project/Assets/unity.webp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.netpyoung.webp",
"displayName": "Unity.WebP",
"version": "0.3.8",
"version": "0.3.9",
"unity": "2018.4",
"description": "webp made easy for Unity3d.",
"keywords": ["webp","unity.webp"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class PackageTool
[MenuItem("Package/Update Package")]
private static void UpdatePackage()
{
const string VERSION = "0.3.8";
const string VERSION = "0.3.9";
AssetDatabase.ExportPackage(
new[] {"Assets/unity.webp"},
$"../webp-{VERSION}.unitypackage",
Expand Down

0 comments on commit dab6a5d

Please sign in to comment.