C# Класс TuxedoBerries.ScenePanel.SceneMainPanelUtility

Scene main panel utility.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DeleteFileIfExist() публичный статический Метод

Deletes the file if exist.
public static DeleteFileIfExist ( string path ) : bool
path string Path.
Результат bool

EnsureDirectory() публичный статический Метод

Ensures the existance of a directory.
public static EnsureDirectory ( string path ) : void
path string Path.
Результат void

ExistFile() публичный статический Метод

Check if a file Exists.
public static ExistFile ( string path ) : bool
path string Path.
Результат bool

GetGameViewSize() публичный статический Метод

Gets the size of the Game View screen.
public static GetGameViewSize ( ) : Vector2
Результат Vector2

OpenFirstScene() публичный статический Метод

Opens the first scene.
public static OpenFirstScene ( ) : bool
Результат bool

OpenScene() публичный статический Метод

Opens the scene.
public static OpenScene ( ISceneFileEntity entity ) : bool
entity ISceneFileEntity Entity.
Результат bool

OpenScene() публичный статический Метод

Opens the scene in editor.
public static OpenScene ( string scene ) : bool
scene string Scene.
Результат bool

SaveText() публичный статический Метод

Saves a text into a file.
public static SaveText ( string text, string path ) : void
text string Text.
path string Path.
Результат void

TakeSnapshot() публичный статический Метод

public static TakeSnapshot ( string path, int scale ) : string
path string
scale int
Результат string

TakeSnapshot() публичный статический Метод

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
Результат string