docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UpscalerOptionsEditorCache

    Manages the lifecycle of cached editors for UpscalerOptions ScriptableObjects.

    Inheritance
    object
    UpscalerOptionsEditorCache
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)