C# Class TuxedoBerries.ScenePanel.SceneMainPanelUtility

Scene main panel utility.
Mostrar archivo Open project: TuxedoBerries/ScenePanel

Public Methods

Method Description
DeleteFileIfExist ( string path ) : bool

Deletes the file if exist.

EnsureDirectory ( string path ) : void

Ensures the existance of a directory.

ExistFile ( string path ) : bool

Check if a file Exists.

GetGameViewSize ( ) : Vector2

Gets the size of the Game View screen.

OpenFirstScene ( ) : bool

Opens the first scene.

OpenScene ( ISceneFileEntity entity ) : bool

Opens the scene.

OpenScene ( string scene ) : bool

Opens the scene in editor.

SaveText ( string text, string path ) : void

Saves a text into a file.

TakeSnapshot ( string path, int scale ) : string
TakeSnapshot ( string path, int scale, string suggestedFolder, string suggestedName ) : string

Takes a snapshot of the current visible screen and save it.

Method Details

DeleteFileIfExist() public static method

Deletes the file if exist.
public static DeleteFileIfExist ( string path ) : bool
path string Path.
return bool

EnsureDirectory() public static method

Ensures the existance of a directory.
public static EnsureDirectory ( string path ) : void
path string Path.
return void

ExistFile() public static method

Check if a file Exists.
public static ExistFile ( string path ) : bool
path string Path.
return bool

GetGameViewSize() public static method

Gets the size of the Game View screen.
public static GetGameViewSize ( ) : Vector2
return Vector2

OpenFirstScene() public static method

Opens the first scene.
public static OpenFirstScene ( ) : bool
return bool

OpenScene() public static method

Opens the scene.
public static OpenScene ( ISceneFileEntity entity ) : bool
entity ISceneFileEntity Entity.
return bool

OpenScene() public static method

Opens the scene in editor.
public static OpenScene ( string scene ) : bool
scene string Scene.
return bool

SaveText() public static method

Saves a text into a file.
public static SaveText ( string text, string path ) : void
text string Text.
path string Path.
return void

TakeSnapshot() public static method

public static TakeSnapshot ( string path, int scale ) : string
path string
scale int
return string

TakeSnapshot() public static method

Takes a snapshot of the current visible screen and save it.
public static TakeSnapshot ( string path, int scale, string suggestedFolder, string suggestedName ) : string
path string
scale int
suggestedFolder string
suggestedName string
return string