docs.unity3d.com
    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
    Namespace: UnityEditor.MARS.Simulation.Rendering
    Syntax
    [MovedFrom("Unity.MARS")]
    public class CompositeRenderModule : IModuleDependency<SimulationSceneModule>, IModuleBehaviorCallbacks, IModule

    Methods

    AddView(ScriptableObject)

    Declaration
    public void AddView(ScriptableObject scriptableObject)
    Parameters
    Type Name Description
    ScriptableObject scriptableObject

    GetActiveCompositeRenderModule(out CompositeRenderModule)

    Get the active Composite Render Module for the Module Loader Core

    Declaration
    public static bool GetActiveCompositeRenderModule(out CompositeRenderModule compositeRenderModule)
    Parameters
    Type Name Description
    CompositeRenderModule compositeRenderModule

    The active Composite Render Module.

    Returns
    Type Description
    Boolean

    True if there is a loaded Composite Render Module.

    RemoveView(ScriptableObject)

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

    Declaration
    public void RemoveView(ScriptableObject scriptableObject)
    Parameters
    Type Name Description
    ScriptableObject scriptableObject

    ScriptableObject to be removed.

    TryGetCompositeRenderContext(ScriptableObject, out CompositeRenderContext)

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

    Declaration
    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
    Boolean

    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>

    Explicit Interface Implementations

    IModule.LoadModule()

    Declaration
    void IModule.LoadModule()
    Implements
    IModule.LoadModule()

    IModule.UnloadModule()

    Declaration
    void IModule.UnloadModule()
    Implements
    IModule.UnloadModule()

    IModuleBehaviorCallbacks.OnBehaviorAwake()

    Declaration
    void IModuleBehaviorCallbacks.OnBehaviorAwake()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorAwake()

    IModuleBehaviorCallbacks.OnBehaviorDestroy()

    Declaration
    void IModuleBehaviorCallbacks.OnBehaviorDestroy()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDestroy()

    IModuleBehaviorCallbacks.OnBehaviorDisable()

    Declaration
    void IModuleBehaviorCallbacks.OnBehaviorDisable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDisable()

    IModuleBehaviorCallbacks.OnBehaviorEnable()

    Declaration
    void IModuleBehaviorCallbacks.OnBehaviorEnable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorEnable()

    IModuleBehaviorCallbacks.OnBehaviorStart()

    Declaration
    void IModuleBehaviorCallbacks.OnBehaviorStart()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorStart()

    IModuleBehaviorCallbacks.OnBehaviorUpdate()

    Declaration
    void IModuleBehaviorCallbacks.OnBehaviorUpdate()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorUpdate()

    IModuleDependency<SimulationSceneModule>.ConnectDependency(SimulationSceneModule)

    Declaration
    void IModuleDependency<SimulationSceneModule>.ConnectDependency(SimulationSceneModule dependency)
    Parameters
    Type Name Description
    SimulationSceneModule dependency
    Implements
    IModuleDependency<T>.ConnectDependency(T)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023