Skip to content

Commit f73f861

Browse files
Update to Cubism 5 SDK for Unity R4_1
1 parent 174b795 commit f73f861

File tree

9 files changed

+76
-172
lines changed

9 files changed

+76
-172
lines changed

Assets/Live2D/Cubism/CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77

8-
## [5-r.4] 2025-05-29
8+
## [5-r.4.1] - 2025-07-17
9+
10+
### Changed
11+
12+
* Implement support for Android 16KB page size.
13+
14+
### Fixed
15+
16+
* Fix a bug that prevented builds from working under certain settings.
17+
18+
19+
## [5-r.4] - 2025-05-29
920

1021
### Added
1122

@@ -463,6 +474,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
463474
* Fix issue where Priority value was not reset after playing motion with CubismMotionController.
464475

465476

477+
[5-r.4.1]: https://github.com/Live2D/CubismUnityComponents/compare/5-r.4...5-r.4.1
466478
[5-r.4]: https://github.com/Live2D/CubismUnityComponents/compare/5-r.3...5-r.4
467479
[5-r.3]: https://github.com/Live2D/CubismUnityComponents/compare/5-r.2...5-r.3
468480
[5-r.2]: https://github.com/Live2D/CubismUnityComponents/compare/5-r.1...5-r.2

Assets/Live2D/Cubism/Framework/CubismInspectorAbstruct.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ public abstract class CubismInspectorAbstract : MonoBehaviour, ICubismUpdatable
2828
/// <summary>
2929
/// Model has cubism update controller component.
3030
/// </summary>
31-
public abstract bool HasUpdateController { get; set; }
31+
public bool HasUpdateController { get; set; }
3232

3333
/// <summary>
3434
/// Called by cubism update controller. Updates controller.
3535
/// </summary>
3636
public abstract void OnLateUpdate();
3737

38+
#if UNITY_EDITOR
3839
/// <summary>
3940
/// CubismModel cache.
4041
/// </summary>
@@ -73,11 +74,21 @@ protected void DispatchValueChanges()
7374
}
7475

7576
/// <summary>
76-
/// Called by Unity. Script is loaded or a value is changed in the Inspector.
77+
/// Called by Unity.
7778
/// </summary>
78-
private void OnValidate()
79+
public void OnEnable()
7980
{
80-
hideFlags = HideFlags.DontSaveInBuild;
81+
// Get cubism update controller.
82+
HasUpdateController = (GetComponent<CubismUpdateController>() != null);
8183
}
84+
85+
/// <summary>
86+
/// Called by Unity.
87+
/// </summary>
88+
private void LateUpdate()
89+
{
90+
// OnLateUpdate is not called because OriginalWorkflow is assumed.
91+
}
92+
#endif
8293
}
8394
}

Assets/Live2D/Cubism/Framework/CubismParametersInspector.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Live2D.Cubism.Core;
1010
using System;
1111
using System.Linq;
12-
using UnityEngine;
1312

1413

1514
namespace Live2D.Cubism.Framework
@@ -24,12 +23,6 @@ public sealed class CubismParametersInspector : CubismInspectorAbstract
2423
/// </summary>
2524
public override int ExecutionOrder => CubismUpdateExecutionOrder.CubismParametersInspector;
2625

27-
/// <summary>
28-
/// Model has cubism update controller component.
29-
/// </summary>
30-
[field: NonSerialized, HideInInspector]
31-
public override bool HasUpdateController { get; set; }
32-
3326
/// <summary>
3427
/// Called by cubism update controller. Updates controller.
3528
/// </summary>
@@ -75,6 +68,7 @@ public override void OnLateUpdate()
7568
#endif
7669
}
7770

71+
#if UNITY_EDITOR
7872
/// <summary>
7973
/// Called by Inspector.
8074
/// </summary>
@@ -92,5 +86,6 @@ public void Refresh()
9286
OverrideFlags = new bool[Model.Parameters.Length];
9387
}
9488
}
89+
#endif
9590
}
9691
}

Assets/Live2D/Cubism/Framework/CubismPartsInspector.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Live2D.Cubism.Core;
1010
using System;
1111
using System.Linq;
12-
using UnityEngine;
1312

1413

1514
namespace Live2D.Cubism.Framework
@@ -24,12 +23,6 @@ public sealed class CubismPartsInspector : CubismInspectorAbstract
2423
/// </summary>
2524
public override int ExecutionOrder => CubismUpdateExecutionOrder.CubismPartsInspector;
2625

27-
/// <summary>
28-
/// Model has cubism update controller component.
29-
/// </summary>
30-
[field: NonSerialized, HideInInspector]
31-
public override bool HasUpdateController { get; set; }
32-
3326
/// <summary>
3427
/// Called by cubism update controller. Updates controller.
3528
/// </summary>
@@ -75,6 +68,7 @@ public override void OnLateUpdate()
7568
#endif
7669
}
7770

71+
#if UNITY_EDITOR
7872
/// <summary>
7973
/// Called by Inspector.
8074
/// </summary>
@@ -92,5 +86,6 @@ public void Refresh()
9286
OverrideFlags = new bool[Model.Parts.Length];
9387
}
9488
}
89+
#endif
9590
}
9691
}

Assets/Live2D/Cubism/Plugins/Android/arm64-v8a/libLive2DCubismCore.so.meta

Lines changed: 9 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Live2D/Cubism/Plugins/Android/x86/libLive2DCubismCore.so.meta

Lines changed: 10 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)