2026-06-20 뉴페어리

This commit is contained in:
2026-06-20 16:46:29 +09:00
parent 833dd50fa9
commit 295e284dd0
849 changed files with 116860 additions and 2 deletions

View File

@@ -0,0 +1,120 @@
// Magica Cloth 2.
// Copyright (c) 2023 MagicaSoft.
// https://magicasoft.jp
#if MC2_DEBUG
using UnityEngine;
#endif
namespace MagicaCloth2
{
/// <summary>
/// クロスのデバッグ表示設定
/// </summary>
[System.Serializable]
public class ClothDebugSettings
{
public enum DebugAxis
{
None,
Normal,
All,
}
//=====================================================================
// ■公開するもの
//=====================================================================
public bool enable = false;
public bool ztest = false;
public bool position = true;
public DebugAxis axis = DebugAxis.None;
public bool shape = false;
public bool baseLine = false;
public bool depth = false;
public bool collider = true;
public bool animatedPosition = false;
public DebugAxis animatedAxis = DebugAxis.None;
public bool animatedShape = false;
public bool inertiaCenter = true;
public bool customSkinningBone = true;
//=====================================================================
// ■デバッグ用
//=====================================================================
#if MC2_DEBUG
//[Space]
//[Header("[MC2_DEBUG]")]
[Header("<<< MC2_DEBUG >>>")]
[Range(0.003f, 0.1f)]
public float pointSize = 0.01f;
public bool referOldPos = false;
public bool radius = true;
public bool localNumber = false;
public bool particleNumber = false;
public bool triangleNumber = false;
public bool friction = false;
public bool staticFriction = false;
public bool attribute = false;
//public bool verticalDistanceConstraint = false;
//public bool horizontalDistanceConstraint = false;
public bool collisionNormal = false;
public bool cellCube = false;
public bool baseLinePos = false;
public int vertexMinIndex = 0;
public int vertexMaxIndex = 100000;
public int triangleMinIndex = 0;
public int triangleMaxIndex = 100000;
#endif
//=========================================================================================
public bool CheckParticleDrawing(int index)
{
#if MC2_DEBUG
return index >= vertexMinIndex && index <= vertexMaxIndex;
#else
return true;
#endif
}
public bool CheckTriangleDrawing(int index)
{
#if MC2_DEBUG
return index >= triangleMinIndex && index <= triangleMaxIndex;
#else
return true;
#endif
}
public bool CheckRadiusDrawing()
{
#if MC2_DEBUG
return radius;
#else
return true;
#endif
}
public float GetPointSize()
{
#if MC2_DEBUG
return pointSize;
#else
return 0.01f;
#endif
}
public float GetLineSize() => 0.05f; // 固定
public float GetInertiaCenterRadius() => 0.01f; // 固定
public float GetCustomSkinningRadius() => 0.02f; // 固定
public bool IsReferOldPos()
{
#if MC2_DEBUG
return referOldPos;
#else
return false;
#endif
}
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 376c4b12fa90b6e429730e7ff5424c71
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.18.1
assetPath: Assets/MagicaCloth2/Scripts/Core/Settings/ClothDebugSettings.cs
uploadId: 893596

View File

@@ -0,0 +1,54 @@
// Magica Cloth 2.
// Copyright (c) 2023 MagicaSoft.
// https://magicasoft.jp
#if MC2_DEBUG
using UnityEngine;
#endif
namespace MagicaCloth2
{
#if MC2_DEBUG
/// <summary>
/// VirtualMeshのデバッグ表示設定
/// </summary>
[System.Serializable]
public class VirtualMeshDebugSettings
{
public enum DebugAxis
{
None,
Normal,
All,
}
[Header("<<< MC2_DEBUG >>>")]
public bool enable = false;
[Range(0.003f, 0.1f)]
public float pointSize = 0.01f;
[Range(0.003f, 0.1f)]
public float lineSize = 0.03f;
public bool position = true;
public bool axis = false;
public bool indexNumber = false;
public bool boneWeight = false;
public bool uv = false;
public bool depth = false;
public bool rootIndex = false;
public bool parentIndex = false;
public bool line = true;
public bool edgeNumber = false;
public bool triangle = true;
public bool triangleNormal = false;
public bool triangleTangent = false;
public bool triangleNumber = false;
public bool baseLine = false;
public bool boneName = false;
public int vertexMinIndex = 0;
public int vertexMaxIndex = 100000;
public int edgeMinIndex = 0;
public int edgeMaxIndex = 100000;
public int triangleMinIndex = 0;
public int triangleMaxIndex = 100000;
}
#endif // MC2_DEBUG
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 531c6af0cb86f0e40b49ae9f19e2f83d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 242307
packageName: Magica Cloth 2
packageVersion: 2.18.1
assetPath: Assets/MagicaCloth2/Scripts/Core/Settings/VirtualMeshDebugSettings.cs
uploadId: 893596