Files
Fishing2/Assets/Procedural Worlds/GeNa/Scripts/Editor/GeNaGaiaGeoSpacialUtility.cs
2026-02-28 12:43:44 +08:00

20 lines
765 B
C#

using UnityEditor;
using UnityEngine;
namespace GeNa.Core
{
[InitializeOnLoad]
public class GeNaGaiaGeoSpacialUtility
{
static GeNaGaiaGeoSpacialUtility() => GeNaEvents.BakeSpline = GeoSpacialBakeSpline;
/// <summary>
/// Function used to execute all the extensions and then bake the mesh which returns the baked gameobject
/// </summary>
/// <param name="splineParent"></param>
/// <param name="splineObject"></param>
/// <param name="spline"></param>
/// <param name="executeExtensions"></param>
/// <returns></returns>
private static GameObject GeoSpacialBakeSpline(GameObject splineParent, GeNaSpline spline) => GeNaUtility.BakeSpline(splineParent, spline);
}
}