You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
557 B
19 lines
557 B
using UnityEngine;
|
|
using UnityEngine.Rendering.PostProcessing;
|
|
|
|
namespace UnityEditor.Rendering.PostProcessing
|
|
{
|
|
static class ResourceAssetFactory
|
|
{
|
|
#if POSTFX_DEBUG_MENUS
|
|
[MenuItem("Tools/Post-processing/Create Resources Asset")]
|
|
#endif
|
|
static void CreateAsset()
|
|
{
|
|
var asset = ScriptableObject.CreateInstance<PostProcessResources>();
|
|
AssetDatabase.CreateAsset(asset, "Assets/PostProcessResources.asset");
|
|
AssetDatabase.SaveAssets();
|
|
AssetDatabase.Refresh();
|
|
}
|
|
}
|
|
}
|