Class ProfileFactory
An utility class to help the creation of new post-processing profile assets.
Inheritance
System.Object
ProfileFactory
Namespace: UnityEditor.Rendering.PostProcessing
Syntax
public sealed class ProfileFactory
Methods
CreatePostProcessProfile(Scene, String)
Creates a post-processing profile asset and automatically put it in a sub folder next to the given scene.
Declaration
public static PostProcessProfile CreatePostProcessProfile(Scene scene, string targetName)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | A scene |
System.String | targetName | A name for the new profile |
Returns
Type | Description |
---|---|
PostProcessProfile | The newly created profile |
CreatePostProcessProfileAtPath(String)
Creates a post-processing profile asset at the given location.
Declaration
public static PostProcessProfile CreatePostProcessProfileAtPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path to use relative to the project folder |
Returns
Type | Description |
---|---|
PostProcessProfile | The newly created profile |