public static ImportSetting_Texture CreateImportSetting_Texture(string name)
        {
            ImportSetting_Texture set = ImportSetting_Texture.CreateInstance <ImportSetting_Texture>();

            set.Init(name);

            return(set);
        }
예제 #2
0
        private void AddItem()
        {
            switch (m_AddFilterType)
            {
            case ImportSetting_Base.FilterType.MODEL:
            {
                m_CurRule.sets.Add(ImportSetting_Model.CreateImportSetting_Model(NewName(m_AddFilterType)));
            }
            break;

            case ImportSetting_Base.FilterType.TEXTURE:
            {
                m_CurRule.sets.Add(ImportSetting_Texture.CreateImportSetting_Texture(NewName(m_AddFilterType)));
            }
            break;
            }
            m_SelectedID = m_CurRule.sets.Count - 1;
            serializedObject.ApplyModifiedProperties();
        }