Class SimulationTestRunner
Window that allows you to run one shot simulation against all the synthetic environments
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 |