internal static OLDTVPreset CreatePostProcessingProfileAtPath(string path) { OLDTVPreset profile = ScriptableObject.CreateInstance <OLDTVPreset>(); profile.name = Path.GetFileName(path); AssetDatabase.CreateAsset(profile, path); return(profile); }
public override void Action(int instanceId, string pathName, string resourceFile) { OLDTVPreset profile = OLDTVPresetFactory.CreatePostProcessingProfileAtPath(pathName); ProjectWindowUtil.ShowCreatedAsset(profile); }