导入角色动画,和增加角色控制

This commit is contained in:
2025-12-11 19:30:20 +08:00
parent a60a92e7ba
commit 7775fa30bb
1452 changed files with 592217 additions and 42573 deletions

View File

@@ -0,0 +1,77 @@
// Designed by KINEMATION, 2024.
using System;
using UnityEngine;
namespace KINEMATION.KAnimationCore.Runtime.Attributes
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class CurveSelectorAttribute : PropertyAttribute
{
public bool useAnimator;
public bool usePlayables;
public bool useInput;
public CurveSelectorAttribute(bool useAnimator = true, bool usePlayables = true, bool useInput = true)
{
this.useAnimator = useAnimator;
this.usePlayables = usePlayables;
this.useInput = useInput;
}
}
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class InputProperty : PropertyAttribute { }
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class RigAssetSelectorAttribute : PropertyAttribute
{
public string assetName;
public RigAssetSelectorAttribute(string rigName = "")
{
assetName = rigName;
}
}
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class ElementChainSelectorAttribute : RigAssetSelectorAttribute
{
public ElementChainSelectorAttribute(string rigName = "")
{
assetName = rigName;
}
}
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class ReadOnlyAttribute : PropertyAttribute { }
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class UnfoldAttribute : PropertyAttribute { }
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class TabAttribute : PropertyAttribute
{
public string tabName;
public TabAttribute(string tabName)
{
this.tabName = tabName;
}
}
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class CustomElementChainDrawerAttribute : PropertyAttribute
{
public bool drawLabel;
public bool drawTextField;
public CustomElementChainDrawerAttribute(bool drawLabel, bool drawTextField)
{
this.drawLabel = drawLabel;
this.drawTextField = drawTextField;
}
}
public class KAttributes { }
}

View File

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