Class LookDev
Main entry point for scripting LookDev
Inheritance
System.Object
LookDev
Namespace: UnityEditor.Rendering.LookDev
Syntax
public static class LookDev
Properties
currentContext
Get all the data used in LookDev currently (views, layout, debug... )
Declaration
public static Context currentContext { get; }
Property Value
| Type | Description |
|---|---|
| Context |
open
State of the LookDev window
Declaration
public static bool open { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
supported
Does LookDev is supported with the current render pipeline?
Declaration
public static bool supported { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
LoadConfig(String)
Load a different set of datas
Declaration
public static void LoadConfig(string path = "Library/LookDevConfig.asset")
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | Path where to load |
Open()
open the LookDev window
Declaration
public static void Open()
ResetConfig()
Reset all LookDevs datas to the default configuration
Declaration
public static void ResetConfig()
SaveConfig(String)
Save the current set of datas
Declaration
public static void SaveConfig(string path = "Library/LookDevConfig.asset")
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | [optional] Path to save. By default, saved in Library folder |
SaveContextChangeAndApply(ViewIndex)
Update the rendered element with element in the context
Declaration
public static void SaveContextChangeAndApply(ViewIndex index)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewIndex | index | The index of the stage to update |