Пример #1
0
    internal static OLDTVPreset CreatePostProcessingProfileAtPath(string path)
    {
        OLDTVPreset profile = ScriptableObject.CreateInstance <OLDTVPreset>();

        profile.name = Path.GetFileName(path);
        AssetDatabase.CreateAsset(profile, path);

        return(profile);
    }
Пример #2
0
    public override void Action(int instanceId, string pathName, string resourceFile)
    {
        OLDTVPreset profile = OLDTVPresetFactory.CreatePostProcessingProfileAtPath(pathName);

        ProjectWindowUtil.ShowCreatedAsset(profile);
    }