PreviewDioramaShoebox Class Reference

This class exists to provide all version of the EditorWithPreview class with access to the same preview objects. This class is initialized by the EditorWithPreview class, on first pass or awake. Since EditorWithPreview T takes a type parameter, each type used would have it's own version of static variables: that is why this class is used by the accessors in EditorWithPreview

Static Public Member Functions

static void HideDioramaObjectsInHierarahcy (bool hide)
 

Static Public Attributes

const string previewCameraName
 name that will be assigned to the preview camera
 

Properties

static Material AxisMaterial [get, set]
 Material that will be used to draw the axis in preview. if it does not exist yet, it will be created using the PreviewShader
 
static Camera PreviewCamera [get]
 The Camera used to render all previews. Will be automatically created if it does not yet exist.
 
static Material PreviewMaterial [get]
 Material that will be used to draw the preview. if it does not exist yet, it will be created using the PreviewShader
 
static GameObject PreviewObject [get, set]
 this is the object that has attached to it, all the components required to draw the object preview
 
static Shader PreviewShader [get, set]
 This is a special shader that is used to render preview objects to the preview camera only, and not to the rest of the scene. If not already defined, it will be loaded. Generate an error if it cannot find the shader to be loaded.