コード例 #1
0
 private void createScript()
 {
     m_viewTypeName = NotificationFileWriter.WriteViewClass(m_selectedApp, m_templateID2Create, NotificationEditingBehavior.Instance.NotificationController.PrefabPath);
     m_dataTypeName = NotificationFileWriter.WriteDataClass(m_selectedApp, m_templateID2Create, NotificationEditingBehavior.Instance.NotificationController.PrefabPath);
     AssetDatabase.Refresh();
     m_fileWritten = true;
     //Debug.Log(NotificationViewObject);
 }
コード例 #2
0
 void deleteFiles()
 {
     if (NotificationViewObject)
     {
         DestroyImmediate(NotificationViewObject);
         NotificationViewObject = null;
         m_notificationData     = null;
     }
     NotificationFileWriter.DeleteViewClass(m_selectedApp, m_templateOption[m_selectedTemplate], NotificationEditingBehavior.Instance.NotificationController.PrefabPath);
     NotificationFileWriter.DeleteDataClass(m_selectedApp, m_templateOption[m_selectedTemplate], NotificationEditingBehavior.Instance.NotificationController.PrefabPath);
     NotificationFileWriter.DeletePrefab(m_selectedApp, m_templateOption[m_selectedTemplate], NotificationEditingBehavior.Instance.NotificationController.PrefabPath);
     m_fileDeleting = true;
 }