private PresetAssetCategoryPath(PresetAssetCategory presetCategory, string path, bool alwaysShow) : base(path, alwaysShow) { this.PresetAssetCategory = presetCategory; PresetAssetCategoryPath.enumToInstanceMap[presetCategory] = this; PresetAssetCategoryPath.pathToInstanceMap[path] = this; }
public static PresetAssetCategoryPath FromPreset(PresetAssetCategory category) { return(PresetAssetCategoryPath.enumToInstanceMap[category]); }