void OnEnable() { curve = GetComponent <CustomCurve>(); mf = GetComponent <MeshFilter>(); mr = GetComponent <MeshRenderer>(); GetCurveMesh(); curve.OnCurveModified += Curve_OnCurveModified; FolderImportOverride_PostImport.OnAssetImported += AssetImported; }
private void OnEnable() { line = target as CustomCurve; }