live2D (sdk가 6.5 미지원으로 sprite로 대응)

This commit is contained in:
2026-08-08 22:13:54 +09:00
parent 9ce6930772
commit 8a4a001fe0
4278 changed files with 287426 additions and 18 deletions

View File

@@ -0,0 +1,33 @@
/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
using System;
using UnityEngine;
namespace Live2D.Cubism.Framework.UserData
{
/// <summary>
/// Body of user data.
/// </summary>
[Serializable]
public struct CubismUserDataBody
{
/// <summary>
/// Id.
/// </summary>
[SerializeField]
public string Id;
/// <summary>
/// Value.
/// </summary>
[SerializeField]
public string Value;
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e34321645d0d9f74ab772da513e6be9d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,68 @@
/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
using UnityEngine;
namespace Live2D.Cubism.Framework.UserData
{
/// <summary>
/// Tag of user data.
/// </summary>
[CubismDontMoveOnReimport]
public class CubismUserDataTag : MonoBehaviour
{
/// <summary>
/// Value.
/// </summary>
public string Value
{
get
{
if (string.IsNullOrEmpty(_value) &&
!string.IsNullOrEmpty(Body.Value))
{
_value = Body.Value;
}
return _value;
}
set { _value = value; }
}
/// <summary>
/// Value backing field.
/// </summary>
[SerializeField, HideInInspector]
private string _value;
/// <summary>
/// Body backing field.
/// </summary>
[SerializeField, HideInInspector]
private CubismUserDataBody _body;
/// <summary>
/// Body.
/// </summary>
private CubismUserDataBody Body
{
get { return _body; }
set { _body = value; }
}
/// <summary>
/// Initializes tag.
/// </summary>
/// <param name="body">Body for initialization.</param>
public void Initialize(CubismUserDataBody body)
{
Body = body;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d834d23fe8faaa94caf31169d326b6b3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
namespace Live2D.Cubism.Framework.UserData
{
/// <summary>
/// Target type of user data.
/// </summary>
public enum CubismUserDataTargetType
{
/// <summary>
/// Drawable.
/// </summary>
ArtMesh,
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6e51d4963797d8e45b3e02c8120a9d87
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: