C# 클래스 TuxedoBerries.ScenePanel.SceneMainPanelUtility

Scene main panel utility.
파일 보기 프로젝트 열기: TuxedoBerries/ScenePanel

공개 메소드들

메소드 설명
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