Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit a05721e

Browse files
committed
Moved ProfileFactory to the public namespace
Cinemachine needs it
1 parent 92a90da commit a05721e

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

PostProcessing/Editor/Tools/ProfileFactory.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
namespace UnityEditor.Rendering.PostProcessing
88
{
9-
internal sealed class ProfileFactory
9+
/// <summary>
10+
/// An utility class to help the creation of new post-processing profile assets.
11+
/// </summary>
12+
public sealed class ProfileFactory
1013
{
1114
[MenuItem("Assets/Create/Post-processing Profile", priority = 201)]
1215
static void CreatePostProcessProfile()
@@ -15,6 +18,11 @@ static void CreatePostProcessProfile()
1518
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, ScriptableObject.CreateInstance<DoCreatePostProcessProfile>(), "New Post-processing Profile.asset", null, null);
1619
}
1720

21+
/// <summary>
22+
/// Creates a post-processing profile asset at the given location.
23+
/// </summary>
24+
/// <param name="path">The path to use relative to the project folder</param>
25+
/// <returns>The newly created profile</returns>
1826
public static PostProcessProfile CreatePostProcessProfileAtPath(string path)
1927
{
2028
var profile = ScriptableObject.CreateInstance<PostProcessProfile>();
@@ -25,6 +33,13 @@ public static PostProcessProfile CreatePostProcessProfileAtPath(string path)
2533
return profile;
2634
}
2735

36+
/// <summary>
37+
/// Creates a post-processing profile asset and automatically put it in a sub folder next
38+
/// to the given scene.
39+
/// </summary>
40+
/// <param name="scene">A scene</param>
41+
/// <param name="targetName">A name for the new profile</param>
42+
/// <returns>The newly created profile</returns>
2843
public static PostProcessProfile CreatePostProcessProfile(Scene scene, string targetName)
2944
{
3045
var path = string.Empty;

0 commit comments

Comments
 (0)