public static void ExportGameCurve(AnimationCurve[] curves) { GameCurve gc = GameCurve.CreateInstance <GameCurve>(); gc.curves = curves; AssetDatabase.CreateAsset(gc, "Assets/RawResources/Scene/Animation/game_curve.asset"); }
static public int get_curves(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif GameCurve self = (GameCurve)checkSelf(l); pushValue(l, true); pushValue(l, self.curves); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }