导入leg插件,完成腿部动画

This commit is contained in:
2025-09-24 15:12:17 +08:00
parent 5087ff1cfe
commit 090e86c0ee
1087 changed files with 417484 additions and 30288 deletions

View File

@@ -0,0 +1,17 @@
{
"name": "AD_FimpLevelDesign",
"references": [
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:7fe40b228d32d4d4e9b1cf8eb73412fd"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b7fc009ba73c9b44c9e27b2473b81860
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: afad2e323bf06724f90eeefa34db16eb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,16 @@
{
"name": "AD_FimpGeneratorsShared",
"references": [
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 67234053b6be56d4680434077ca8fd90
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 27f0e1d4eab8b774aab707b9c84325fb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ee95a3fbc2c4f7246b3fa1eedbc078c1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,150 @@
using System;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace FIMSpace.Generating
{
[System.Serializable]
public partial struct MinMax
{
public int Min;
public int Max;
public bool IsZero { get { return Min == 0 && Max == 0; } }
public static MinMax zero { get { return new MinMax(0,0); } }
public Vector2 ToVector2 { get { return new Vector2(Min,Max); } }
public Vector2Int ToVector2Int { get { return new Vector2Int(Min,Max); } }
public MinMax(int min, int max)
{
Min = min;
Max = max;
}
public int GetRandom()
{
return (int)(Min + (float)FGenerators.GetRandom() * ((Max + 1) - Min));
}
#if UNITY_EDITOR
public static MinMax DrawGUI(MinMax target, GUIContent label, bool clamp = true)
{
EditorGUILayout.BeginHorizontal();
float width = EditorStyles.label.CalcSize(label).x;
EditorGUIUtility.labelWidth = width + 4;
EditorGUILayout.LabelField(label, GUILayout.Width(width));
GUILayout.Space(28);
EditorGUIUtility.labelWidth = 28;
target.Min = EditorGUILayout.IntField("Min", target.Min, GUILayout.Width(70));
//GUILayout.FlexibleSpace();
GUILayout.Space(24);
EditorGUIUtility.labelWidth = 32;
target.Max = EditorGUILayout.IntField("Max", target.Max, GUILayout.Width(74));
EditorGUILayout.EndHorizontal();
EditorGUIUtility.labelWidth = 0;
if (clamp)
{
if (target.Min < 0) target.Min = 0;
if (target.Max < 0) target.Max = 0;
}
if (target.Min > target.Max) target.Max = target.Min;
if (target.Max < target.Min) target.Min = target.Max;
return target;
}
#endif
}
#if UNITY_EDITOR
[CustomPropertyDrawer(typeof(MinMax))]
public class MinMaxDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.BeginProperty(position, label, property);
Rect srcPos = position;
position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
EditorGUIUtility.labelWidth = 30;
float labelW = EditorStyles.label.CalcSize(label).x;
var vRect = new Rect(srcPos.width - 60 * 2f - 10, position.y, 60, position.height);
int preInd = EditorGUI.indentLevel;
EditorGUI.indentLevel = 0;
SerializedProperty sp_min = property.FindPropertyRelative("Min");
EditorGUI.PropertyField(vRect, sp_min, new GUIContent(sp_min.displayName));
vRect = new Rect(srcPos.width - 60, position.y, 60, position.height);
SerializedProperty sp_max = property.FindPropertyRelative("Max");
EditorGUI.PropertyField(vRect, sp_max, new GUIContent(sp_max.displayName));
if (sp_min.intValue < 0) sp_min.intValue = 0;
if (sp_max.intValue < 0) sp_max.intValue = 0;
if (sp_min.intValue > sp_max.intValue) sp_max.intValue = sp_min.intValue;
if (sp_max.intValue < sp_min.intValue) sp_min.intValue = sp_max.intValue;
EditorGUI.indentLevel = preInd;
EditorGUIUtility.labelWidth = 0;
EditorGUI.EndProperty();
}
}
#endif
[System.Serializable]
public struct MinMaxF
{
public float Min;
public float Max;
public MinMaxF(float min, float max)
{
Min = min;
Max = max;
}
}
#if UNITY_EDITOR
[CustomPropertyDrawer(typeof(MinMaxF))]
public class MinMaxFDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.BeginProperty(position, label, property);
Rect srcPos = position;
position = EditorGUI.PrefixLabel(position, GUIUtility.GetControlID(FocusType.Passive), label);
EditorGUIUtility.labelWidth = 30;
float labelW = EditorStyles.label.CalcSize(label).x;
var vRect = new Rect(srcPos.width - 60 * 2f - 10, position.y, 60, position.height);
SerializedProperty sp_min = property.FindPropertyRelative("Min");
EditorGUI.PropertyField(vRect, sp_min, new GUIContent(sp_min.displayName));
vRect = new Rect(srcPos.width - 60, position.y, 60, position.height);
SerializedProperty sp_max = property.FindPropertyRelative("Max");
EditorGUI.PropertyField(vRect, sp_max, new GUIContent(sp_max.displayName));
if (sp_min.floatValue < 0) sp_min.floatValue = 0;
if (sp_max.floatValue < 0) sp_max.floatValue = 0;
if (sp_min.floatValue > sp_max.floatValue) sp_max.floatValue = sp_min.floatValue;
if (sp_max.floatValue < sp_min.floatValue) sp_min.floatValue = sp_max.floatValue;
EditorGUIUtility.labelWidth = 0;
EditorGUI.EndProperty();
}
}
#endif
}

View File

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

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dda665751142e2547a8b1bf79e9aae24
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
{
"name": "AD_FimpMeshGenerating",
"rootNamespace": "",
"references": [
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:cd9949e6b11bcee44bc837d46dbfb86b"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 934bdcc94c091ac4db37ff5fa788089b
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 92c40460bba74f44d8d90f14d7bb0d91
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,3 @@
{
"name": "Parabox_CSG"
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cd9949e6b11bcee44bc837d46dbfb86b
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6433a2aa84b51b14c8ba0896bb386969
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,18 @@
{
"name": "AD_FimpObjectStamper",
"references": [
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:7fe40b228d32d4d4e9b1cf8eb73412fd"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 227bed29f43702842b27f8b3c941a1d5
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 25ab986dff9b6954dbc9069633817197
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cedbd46181628a149af80cc5b78cb304
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,18 @@
{
"name": "AD_FimpObjectStamper.Editor",
"references": [
"GUID:227bed29f43702842b27f8b3c941a1d5",
"GUID:103829f02546ce64db83be245c91a2cc"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: dd2b710f33980904bafbd0e9c636fef9
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c93351a746819e843902d79e79a7a7bf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
{
"name": "AD_FimpPGG",
"references": [
"GUID:227bed29f43702842b27f8b3c941a1d5",
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:c09aa9cea864c914e8d3136820cd64e6",
"GUID:7fe40b228d32d4d4e9b1cf8eb73412fd",
"GUID:da06b041f8d5f1f4684ddcd7d6eb9129",
"GUID:3fc5d6f74ab756e4da1a5c087ef2c703",
"GUID:934bdcc94c091ac4db37ff5fa788089b"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 032bd11c46e0cfb40bcec14264242e04
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5a67bc5ecad8c4c47843c4dbbc32c304
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,25 @@
{
"name": "AD_FimpPGG.Editor",
"references": [
"GUID:032bd11c46e0cfb40bcec14264242e04",
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:227bed29f43702842b27f8b3c941a1d5",
"GUID:dd2b710f33980904bafbd0e9c636fef9",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:da06b041f8d5f1f4684ddcd7d6eb9129",
"GUID:91666505de5b63b4cb3144355dd9469d",
"GUID:def19ec7b336fa04eab019083d0e5b62"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f01331df51b33b247bc2fc11bdb9ae41
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 74bae2c8b0bb3cc48a4a8f04f37ee59d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,18 @@
{
"name": "AD_FimpPipeGenerator",
"references": [
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:7fe40b228d32d4d4e9b1cf8eb73412fd"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c09aa9cea864c914e8d3136820cd64e6
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b342e11f3795e4348a26247e12ad06b0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6046f0a0099eb0b4482f56ee2f4dda1a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
{
"name": "AD_FimpPipeGenerator.Editor",
"references": [
"GUID:c09aa9cea864c914e8d3136820cd64e6",
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 879ebebf6efeafd49b83a8c507450ba0
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f1a2664a6be98bc488acb20e47f1e6c8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
{
"name": "AD_FimpTileDesigner",
"references": [
"GUID:0e6b1f35d8416da46a5e09a445db4184",
"GUID:4d3c0eb3c5c6f2243952516f8611fff4",
"GUID:67234053b6be56d4680434077ca8fd90",
"GUID:cd9949e6b11bcee44bc837d46dbfb86b",
"GUID:934bdcc94c091ac4db37ff5fa788089b"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3fc5d6f74ab756e4da1a5c087ef2c703
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: