public static void CreateNewCurveAsset() { GameObject newCurveGO = HEU_HAPIUtility.CreateNewCurveAsset(); if (newCurveGO != null) { HEU_Curve.PreferredNextInteractionMode = HEU_Curve.Interaction.ADD; HEU_EditorUtility.SelectObject(newCurveGO); } }
/// <summary> /// Create a new Curve SOP with given name. /// </summary> void CreateCurve(string name) { GameObject newCurveGO = HEU_HAPIUtility.CreateNewCurveAsset(name: name); if (newCurveGO != null) { HEU_Curve.PreferredNextInteractionMode = HEU_Curve.Interaction.ADD; HEU_EditorUtility.SelectObject(newCurveGO); } }