C# Class TuxedoBerries.ScenePanel.SceneMainPanelUtility

Scene main panel utility.
Afficher le fichier Open project: TuxedoBerries/ScenePanel

Méthodes publiques

Méthode 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 méthode

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

EnsureDirectory() public static méthode

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

ExistFile() public static méthode

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

GetGameViewSize() public static méthode

Gets the size of the Game View screen.
public static GetGameViewSize ( ) : Vector2
Résultat Vector2

OpenFirstScene() public static méthode

Opens the first scene.
public static OpenFirstScene ( ) : bool
Résultat bool

OpenScene() public static méthode

Opens the scene.
public static OpenScene ( ISceneFileEntity entity ) : bool
entity ISceneFileEntity Entity.
Résultat bool

OpenScene() public static méthode

Opens the scene in editor.
public static OpenScene ( string scene ) : bool
scene string Scene.
Résultat bool

SaveText() public static méthode

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

TakeSnapshot() public static méthode

public static TakeSnapshot ( string path, int scale ) : string
path string
scale int
Résultat string

TakeSnapshot() public static méthode

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
Résultat string