protected override void CopyInternal(ParticleSystem ps) { string[] name1, name2; ParticleSystem.MinMaxCurve[] vector1, vector2; CustomDataUtility.GetCustomDataVector(ps, 0, out name1, out vector1); CustomDataUtility.GetCustomDataVector(ps, 1, out name2, out vector2); // CustomDataのコピー data.CustomData1_Name = name1; data.CustomData1_Vector = vector1; data.CustomData2_Name = name2; data.CustomData2_Vector = vector2; }
protected override void PasteInternal(ParticleSystem ps) { // CustomDataのペースト CustomDataUtility.SetCustomDataVector(ps, 0, data.CustomData1_Name, data.CustomData1_Vector); CustomDataUtility.SetCustomDataVector(ps, 1, data.CustomData2_Name, data.CustomData2_Vector); }