WuhuIslandTesting/Library/PackageCache/com.unity.splines@1.0.1/Editor/Unity.Splines.Editor.api
2025-01-07 02:06:59 +01:00

42 lines
2.4 KiB
Text

// This file is generated. Do not modify by hand.
// XML documentation file not found. To check if public methods have XML comments,
// make sure the XML doc file is present and located next to the scraped dll
namespace UnityEditor.Splines
{
[System.AttributeUsage(4, Inherited = false)] public class CustomSplineDataHandle : System.Attribute
{
public CustomSplineDataHandle(System.Type type) {}
}
public static class EditorSplineUtility
{
public static event System.Action<UnityEngine.Splines.Spline> afterSplineWasModified;
public static void RegisterSplineDataChanged<T>(System.Action<UnityEngine.Splines.SplineData<T>> action);
public static void UnregisterSplineDataChanged<T>(System.Action<UnityEngine.Splines.SplineData<T>> action);
}
public abstract class SplineDataHandle<T> : UnityEditor.Splines.ISplineDataHandle
{
public virtual UnityEngine.Splines.SplineDataHandleAttribute attribute { get; }
public int[] controlIDs { get; }
protected SplineDataHandle() {}
public virtual void DrawDataPoint(int controlID, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, UnityEngine.Vector3 upDirection, UnityEngine.Splines.SplineData<T> splineData, int dataPointIndex);
public virtual void DrawSplineData(UnityEngine.Splines.SplineData<T> splineData, UnityEngine.Splines.Spline spline, UnityEngine.Matrix4x4 localToWorld, UnityEngine.Color color);
}
[UnityEditor.CustomPropertyDrawer(typeof(UnityEngine.Splines.SplineData<>))] public class SplineDataPropertyDrawer : UnityEditor.PropertyDrawer
{
public SplineDataPropertyDrawer() {}
public virtual float GetPropertyHeight(UnityEditor.SerializedProperty property, UnityEngine.GUIContent label);
public virtual void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label);
}
[UnityEditor.EditorTools.EditorToolContext(@"Spline", typeof(UnityEngine.Splines.ISplineProvider))] [UnityEngine.Icon(@"Packages/com.unity.splines/Editor/Resources/Icons/SplineContext.png")] public sealed class SplineToolContext : UnityEditor.EditorTools.EditorToolContext
{
public SplineToolContext() {}
protected virtual System.Type GetEditorToolType(UnityEditor.Tool tool);
public virtual void OnActivated();
public virtual void OnToolGUI(UnityEditor.EditorWindow window);
public virtual void OnWillBeDeactivated();
}
}