Class UpscalerOptionsEditorCache
Manages the lifecycle of cached editors for UpscalerOptions ScriptableObjects.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public class UpscalerOptionsEditorCache
Methods
Cleanup()
Destroys all cached editor instances. Call this from the parent editor's OnDisable method.
Declaration
public void Cleanup()
GetOrCreateEditor(ScriptableObject)
Gets a cached editor for the given options object. If the editor is not found in the cache, a new editor is created and then cached.
Declaration
public Editor? GetOrCreateEditor(ScriptableObject options)
Parameters
| Type | Name | Description |
|---|---|---|
| ScriptableObject | options | An instance of one of child classes of UpscalerOptions. |
Returns
| Type | Description |
|---|---|
| Editor | An editor instance for the given options object. |