Class ScenePlacementPanel
Inherited Members
Namespace: Unity.MARS
Syntax
[PanelOrder(1073741973)]
public class ScenePlacementPanel : PanelView
Properties
AutoRepaintOnSceneChange
Should the panel cause the tear off window to auto repaint on scene change
Declaration
public override bool AutoRepaintOnSceneChange { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
DrawAsWindow
Is the panel being drawn in a tear off window.
Declaration
public override bool DrawAsWindow { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
MaxSize
Maximum sized of the panel
Declaration
public override Vector2 MaxSize { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
MinSize
Minimum size of the panel
Declaration
public override Vector2 MinSize { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
PanelExpanded
Is the panel currently expanded under the header.
Declaration
public override bool PanelExpanded { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
PanelLabel
Name of the panel used in the header and for tear off window name.
Declaration
public override string PanelLabel { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
PreferredSize
Size of panel when opening as a window
Declaration
public override Vector2 PreferredSize { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Overrides
TabMenuFunc
Callback for Tab panel view. Override with Null if you want not drawn.
Declaration
public override Func<GenericMenu> TabMenuFunc { get; }
Property Value
Type | Description |
---|---|
Func<GenericMenu> |
Overrides
UsePrefSize
Should the panel use the preferred size when initially drawing as a window.
Declaration
public override bool UsePrefSize { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
OnEnable()
Declaration
public override void OnEnable()
Overrides
OnGUI()
Draws the panel contents
Declaration
public override void OnGUI()
Overrides
OnSelectionChanged()
Callback for on selection change.
Declaration
public override void OnSelectionChanged()
Overrides
Repaint()
Calls repaint on the panel and the parent window(s).
Declaration
public override void Repaint()