chore: initial commit

This commit is contained in:
2026-05-08 11:04:00 +08:00
commit f55d2a57c3
6278 changed files with 866081 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2026 Kybernetik //
#if UNITY_EDITOR
using UnityEditor;
namespace Animancer.Editor
{
/// <summary>[Editor-Only] A custom GUI for <see cref="WeightedMaskLayers.Fade"/>.</summary>
/// https://kybernetik.com.au/animancer/api/Animancer.Editor/WeightedMaskLayersFadeDrawer
[CustomGUI(typeof(WeightedMaskLayers.Fade))]
public class WeightedMaskLayersFadeDrawer : CustomGUI<WeightedMaskLayers.Fade>
{
/************************************************************************************************************************/
private bool _IsExpanded;
/************************************************************************************************************************/
/// <inheritdoc/>
public override void DoGUI()
{
_IsExpanded = EditorGUILayout.Foldout(_IsExpanded, "Weighted Mask Layers Fade", true);
if (_IsExpanded)
DoDetailsGUI();
}
/************************************************************************************************************************/
/// <summary>Draws the GUI for the target's fields.</summary>
protected virtual void DoDetailsGUI()
{
EditorGUI.indentLevel++;
Value.ElapsedTime = EditorGUILayout.Slider("Elapsed", Value.ElapsedTime, 0, Value.Duration);
Value.Duration = EditorGUILayout.FloatField("Duration", Value.Duration);
EditorGUI.indentLevel--;
}
/************************************************************************************************************************/
}
}
#endif