Skip to content

Commit

Permalink
version 2.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
izayoijiichan committed Jul 22, 2023
1 parent 8a4c74f commit e0e0050
Show file tree
Hide file tree
Showing 108 changed files with 2,399 additions and 1,273 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## [2.5.11] - 2023-07-22

- Changes
- ScriptableObject fields are now accessed by properties.
- Improvements
- Program safety is enhanced.
- Fixes
- The MeshExporter export option was not done correctly.

## [2.5.10] - 2023-07-17

- Features
Expand Down
32 changes: 16 additions & 16 deletions Documentation~/UniVGO/Installation.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Unity 2021.1 以下のバージョンを使用する場合
|com.izayoi.liltoon.shader.utility|IzayoiJiichan|GitHub||1.4.0|2023年5月30日|
|com.izayoi.unishaders|IzayoiJiichan|GitHub||1.5.0|2023年7月17日|
|com.izayoi.vgospringbone|IzayoiJiichan|GitHub||1.1.2|2022年8月24日|
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.10|2023年7月17日|
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.11|2023年7月22日|

#### 追加パッケージ

Expand Down Expand Up @@ -142,7 +142,7 @@ UniVGOを使用するために、以下の設定を追加してください。
"dependencies": {
"com.izayoi.liltoon.shader.utility": "https://github.com/izayoijiichan/lilToonShaderUtility.git#v1.4.0",
"com.izayoi.unishaders": "https://github.com/izayoijiichan/UniShaders.git#v1.5.0",
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.10",
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.11",
"com.izayoi.vgospringbone": "https://github.com/izayoijiichan/VgoSpringBone.git#v1.1.2",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.ugui": "1.0.0",
Expand Down Expand Up @@ -245,19 +245,19 @@ ___

|UniVRM|UniVGO|min Unity|
|:---:|:---:|:---:|
|0.100.0|2.5.10|2020.3|
|0.101.0|2.5.10|2020.3|
|0.102.0|2.5.10|2020.3|
|0.103.2|2.5.10|2020.3|
|0.104.2|2.5.10|2020.3|
|0.105.0|2.5.10|2020.3|
|0.106.0|2.5.10|2020.3|
|0.107.2|2.5.10|2020.3|
|0.108.0|2.5.10|2020.3|
|0.109.0|2.5.10|2020.3|
|0.110.0|2.5.10|2020.3|
|0.111.0|2.5.10|2020.3|
|0.112.0|2.5.10|2020.3|
|0.100.0|2.5.11|2020.3|
|0.101.0|2.5.11|2020.3|
|0.102.0|2.5.11|2020.3|
|0.103.2|2.5.11|2020.3|
|0.104.2|2.5.11|2020.3|
|0.105.0|2.5.11|2020.3|
|0.106.0|2.5.11|2020.3|
|0.107.2|2.5.11|2020.3|
|0.108.0|2.5.11|2020.3|
|0.109.0|2.5.11|2020.3|
|0.110.0|2.5.11|2020.3|
|0.111.0|2.5.11|2020.3|
|0.112.0|2.5.11|2020.3|

`<Project>/Packages/package.json` に以下の記述を行います。

Expand Down Expand Up @@ -288,7 +288,7 @@ https://github.com/izayoijiichan/VGO/wiki/How-to-use-UniVRM-and-UniVGO-together
|2022.3.0f1|BRP|UniVGO + UniVRM|[Link](https://github.com/izayoijiichan/univgo2.sample.unity.project/tree/unity2022.3.brp.univrm)|

___
最終更新日:2023年7月17日
最終更新日:2023年7月22日
編集者:十六夜おじいちゃん

*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*
32 changes: 16 additions & 16 deletions Documentation~/UniVGO/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This package is required for any Unity version.
|com.izayoi.liltoon.shader.utility|IzayoiJiichan|GitHub||1.4.0|30 May, 2023|
|com.izayoi.unishaders|IzayoiJiichan|GitHub||1.5.0|17 Jul, 2023|
|com.izayoi.vgospringbone|IzayoiJiichan|GitHub||1.1.2|24 Aug, 2022|
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.10|17 Jul, 2023|
|com.izayoi.univgo|IzayoiJiichan|GitHub|VGO 2.5|2.5.11|22 Jul, 2023|

#### Additional Packages

Expand Down Expand Up @@ -141,7 +141,7 @@ To use UniVGO, add the following settings.
"dependencies": {
"com.izayoi.liltoon.shader.utility": "https://github.com/izayoijiichan/lilToonShaderUtility.git#v1.4.0",
"com.izayoi.unishaders": "https://github.com/izayoijiichan/UniShaders.git#v1.5.0",
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.10",
"com.izayoi.univgo": "https://github.com/izayoijiican/VGO.git#v2.5.11",
"com.izayoi.vgospringbone": "https://github.com/izayoijiichan/VgoSpringBone.git#v1.1.2",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.ugui": "1.0.0",
Expand Down Expand Up @@ -243,19 +243,19 @@ The version combinations are as follows.

|UniVRM|UniVGO|min Unity|
|:---:|:---:|:---:|
|0.100.0|2.5.10|2020.3|
|0.101.0|2.5.10|2020.3|
|0.102.0|2.5.10|2020.3|
|0.103.2|2.5.10|2020.3|
|0.104.2|2.5.10|2020.3|
|0.105.0|2.5.10|2020.3|
|0.106.0|2.5.10|2020.3|
|0.107.2|2.5.10|2020.3|
|0.108.0|2.5.10|2020.3|
|0.109.0|2.5.10|2020.3|
|0.110.0|2.5.10|2020.3|
|0.111.0|2.5.10|2020.3|
|0.112.0|2.5.10|2020.3|
|0.100.0|2.5.11|2020.3|
|0.101.0|2.5.11|2020.3|
|0.102.0|2.5.11|2020.3|
|0.103.2|2.5.11|2020.3|
|0.104.2|2.5.11|2020.3|
|0.105.0|2.5.11|2020.3|
|0.106.0|2.5.11|2020.3|
|0.107.2|2.5.11|2020.3|
|0.108.0|2.5.11|2020.3|
|0.109.0|2.5.11|2020.3|
|0.110.0|2.5.11|2020.3|
|0.111.0|2.5.11|2020.3|
|0.112.0|2.5.11|2020.3|

Write the following in `<Project> /Packages/package.json`.

Expand Down Expand Up @@ -285,7 +285,7 @@ https://github.com/izayoijiichan/VGO/wiki/How-to-use-UniVRM-and-UniVGO-together
|2022.3.0f1|BRP|UniVGO + UniVRM|[Link](https://github.com/izayoijiichan/univgo2.sample.unity.project/tree/unity2022.3.brp.univrm)|

___
Last updated: 17 July, 2023
Last updated: 22 July, 2023
Editor: Izayoi Jiichan

*Copyright (C) 2020 Izayoi Jiichan. All Rights Reserved.*
6 changes: 4 additions & 2 deletions NewtonVgo/Runtime/Buffers/ArraySegmentByteBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ public ArraySegmentByteBuffer(int capacity)
/// <returns>Returns the size of the appended data.</returns>
public int Append<T>(ArraySegment<T> data, int stride = 0) where T : struct
{
if (data == null)
if (data.Array is null)
{
ThrowHelper.ThrowArgumentNullException(nameof(data));
ThrowHelper.ThrowArgumentException(nameof(data));

return 0;
}

if (data.Count == 0)
Expand Down
10 changes: 10 additions & 0 deletions NewtonVgo/Runtime/Buffers/ReadOnlyArraySegmentByteBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ public ArraySegment<byte> GetBytes()
/// <returns>A new byte array.</returns>
public byte[] ToArray()
{
if (_Bytes.Array is null)
{
return Array.Empty<byte>();
}

if (_Bytes.Count == 0)
{
return Array.Empty<byte>();
}

byte[] destinationArray = new byte[_Bytes.Count];

Array.Copy(sourceArray: _Bytes.Array, _Bytes.Offset, destinationArray, 0, _Bytes.Count);
Expand Down
Loading

0 comments on commit e0e0050

Please sign in to comment.