docs.unity3d.com
    Show / Hide Table of Contents

    Class SimulationTestRunner

    Window that allows you to run one shot simulation against all the synthetic environments

    Inheritance
    Object
    SimulationTestRunner
    Namespace: UnityEditor.MARS.Simulation
    Syntax
    public class SimulationTestRunner : EditorWindow, IHasCustomMenu

    Fields

    WindowTitle

    Window title

    Declaration
    public const string WindowTitle = null
    Field Value
    Type Description
    String

    Methods

    AddItemsToMenu(GenericMenu)

    Add the window to the MARS menu

    Declaration
    public void AddItemsToMenu(GenericMenu menu)
    Parameters
    Type Name Description
    GenericMenu menu

    Menu to add the window option too

    InitWindow()

    Create the SimulationTestRunner window

    Declaration
    public static void InitWindow()

    OnEnable()

    This function is called when the object is loaded.

    Declaration
    public void OnEnable()

    OnGUI()

    Window's GUI is drawn here

    Declaration
    public void OnGUI()

    RenderTextureToPreview(RenderTexture)

    Converts a render texture to a Texture2D for use in the window

    Declaration
    public static Texture2D RenderTextureToPreview(RenderTexture rt)
    Parameters
    Type Name Description
    RenderTexture rt

    Render texture to convert to a Texture 2D

    Returns
    Type Description
    Texture2D

    New Texture2D from a RenderTexture

    Back to top
    Terms of use
    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