C# Class UnityEditor.GameView

Inheritance: EditorWindow, IHasCustomMenu, IGameViewSizeMenuUser
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
AllowCursorLockAndHide void
ClearTargetTexture void
ConfigureTargetTexture void
ConfigureZoomArea void
CopyDimensionsToParentView void
DefaultScaleForTargetInView float
DoToolbarGUI void
DoZoomSlider void
EnforceZoomAreaConstraints void
EnsureSelectedSizeAreValid void
GetMainGameView GameView
GetMainGameViewTargetSize Vector2
GetSizeOfMainGameView Vector2
InitializeZoomArea void
LoadRenderDoc void
OnFocus void
OnGUI void
OnLostFocus void
OnSelectionChange void
ScaleThatFitsTargetInView float
ShouldShowMultiDisplayOption bool
SnapZoom void
SnapZoomDelayed void
ToggleClearInEditMode void
ToggleNoCameraWarning void
UpdateZoomAreaAndParent void
WindowToGameMousePosition Vector2

Public Methods

Method Description
AddItemsToMenu ( GenericMenu menu ) : void
GameView ( ) : System
IsShowingGizmos ( ) : bool
OnDisable ( ) : void
OnEnable ( ) : void
OnValidate ( ) : void
RepaintAll ( ) : void
SizeSelectionCallback ( int indexClicked, object objectSelected ) : void

Private Methods

Method Description
AllowCursorLockAndHide ( bool enable ) : void
ClearTargetTexture ( ) : void
ConfigureTargetTexture ( int width, int height ) : void
ConfigureZoomArea ( ) : void
CopyDimensionsToParentView ( ) : void
DefaultScaleForTargetInView ( Vector2 targetToFit, Vector2 viewSize ) : float
DoToolbarGUI ( ) : void
DoZoomSlider ( ) : void
EnforceZoomAreaConstraints ( ) : void
EnsureSelectedSizeAreValid ( ) : void
GetMainGameView ( ) : GameView
GetMainGameViewTargetSize ( ) : Vector2
GetSizeOfMainGameView ( ) : Vector2
InitializeZoomArea ( ) : void
LoadRenderDoc ( ) : void
OnFocus ( ) : void
OnGUI ( ) : void
OnLostFocus ( ) : void
OnSelectionChange ( ) : void
ScaleThatFitsTargetInView ( Vector2 targetInPixels, Vector2 viewInPoints ) : float
ShouldShowMultiDisplayOption ( ) : bool
SnapZoom ( float newZoom ) : void
SnapZoomDelayed ( ) : void
ToggleClearInEditMode ( ) : void
ToggleNoCameraWarning ( ) : void
UpdateZoomAreaAndParent ( ) : void
WindowToGameMousePosition ( Vector2 windowMousePosition ) : Vector2

Method Details

AddItemsToMenu() public method

public AddItemsToMenu ( GenericMenu menu ) : void
menu GenericMenu
return void

GameView() public method

public GameView ( ) : System
return System

IsShowingGizmos() public method

public IsShowingGizmos ( ) : bool
return bool

OnDisable() public method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

OnValidate() public method

public OnValidate ( ) : void
return void

RepaintAll() public static method

public static RepaintAll ( ) : void
return void

SizeSelectionCallback() public method

public SizeSelectionCallback ( int indexClicked, object objectSelected ) : void
indexClicked int
objectSelected object
return void