docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CompositeRenderModule

    Module that manages the composite render context for all active views. This allows the composting of multiple scenes with different render settings in a view.

    Inheritance
    object
    CompositeRenderModule
    Implements
    IModuleDependency<SimulationSceneModule>
    IModule
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.MARS.Simulation.Rendering
    Assembly: Unity.MARS.Editor.dll
    Syntax
    [ModuleOrder(1073741825)]
    [ModuleUnloadOrder(1073741823)]
    [MovedFrom("Unity.MARS")]
    public class CompositeRenderModule : IModuleDependency<SimulationSceneModule>, IModule

    Methods

    AddView(ScriptableObject)

    Obsolete - Adds a view to the composite render module.

    Declaration
    [Obsolete("AddView(scriptableObject) is obsolete, use CreateCompositeContext(camera)")]
    public void AddView(ScriptableObject scriptableObject)
    Parameters
    Type Name Description
    ScriptableObject scriptableObject

    ScriptableObject to add.

    GetActiveCompositeRenderModule(out CompositeRenderModule)

    Get the active Composite Render Module for the Module Loader Core.

    Declaration
    [Obsolete("GetActiveCompositeRenderModule is obsolete, use 'ModuleLoaderCore.instance.GetModule<CompositeRenderModule>()'")]
    public static bool GetActiveCompositeRenderModule(out CompositeRenderModule compositeRenderModule)
    Parameters
    Type Name Description
    CompositeRenderModule compositeRenderModule

    The active Composite Render Module.

    Returns
    Type Description
    bool

    True if there is a loaded Composite Render Module.

    RemoveView(ScriptableObject)

    Obsolete - Removes a view from being used in the composite render module and disposes of the CompositeRenderContext for that view.

    Declaration
    [Obsolete("RemoveView(scriptableObject) is obsolete, use DisposeCompositeContext(camera)")]
    public void RemoveView(ScriptableObject scriptableObject)
    Parameters
    Type Name Description
    ScriptableObject scriptableObject

    ScriptableObject to be removed.

    TryGetCompositeRenderContext(Camera, out CompositeRenderContext)

    Try to get a Composite Render Context from the camera that is rendering the context.

    Declaration
    public bool TryGetCompositeRenderContext(Camera camera, out CompositeRenderContext context)
    Parameters
    Type Name Description
    Camera camera

    Camera rendering the context we are trying to find.

    CompositeRenderContext context

    The Composite Render Context associated with the camera.

    Returns
    Type Description
    bool

    Returns True if there is a context associated with the camera.

    TryGetCompositeRenderContext(ScriptableObject, out CompositeRenderContext)

    Obsolete - Try to get a Composite Render Context associated with the Scriptable Object from the active Composite Render Module.

    Declaration
    [Obsolete("TryGetCompositeRenderContext is obsolete, first get the 'CompositeRenderModule' instance from the 'ModuleLoaderCore' the call 'TryGetCompositeRenderContext(camera, out context)'")]
    public static bool TryGetCompositeRenderContext(ScriptableObject scriptableObject, out CompositeRenderContext context)
    Parameters
    Type Name Description
    ScriptableObject scriptableObject

    Scriptable object we want the context for.

    CompositeRenderContext context

    The Composite Render Context associated with the scriptable object.

    Returns
    Type Description
    bool

    Returns True if there is a context associated with the scriptable object.

    Events

    BeforeBackgroundCameraRender

    Event callback for before composite cameras render in the Composite Render Context

    Declaration
    public event Action<CompositeRenderContext> BeforeBackgroundCameraRender
    Event Type
    Type Description
    Action<CompositeRenderContext>

    Implements

    Unity.XRTools.ModuleLoader.IModuleDependency<T>
    Unity.XRTools.ModuleLoader.IModule
    In This Article
    Back to top
    Copyright © 2025 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)