C# 클래스 TextSceneMonitor, UnityTextScene

파일 보기 프로젝트 열기: terravision/UnityTextScene 1 사용 예제들

공개 메소드들

메소드 설명
DoSaveAndReload ( string scene, TextSceneDeserializer, callback ) : void
GetCurrentScene ( ) : string

Returns the current scene being monitored.

MonitorUpdate ( ) : void

Wrapper for running an update on the monitor.

SaveIfTempIsNewer ( ) : void
SetCurrentScene ( string filename ) : void

Sets the current TextScene we will monitor for changes. Also stores the current scene Unity has open (the binary version) so we can detect if the user suddenly changes to either a new scene or a different binary scene without going via the TextScene functionality.

TextSceneMonitor ( ) : System

Creates a new TextSceneMonitor and reads in relevant values from PlayerPrefs (such as last monitored scene).

비공개 메소드들

메소드 설명
CheckForChangedTemp ( ) : bool
MonitorStateChange ( ) : void
Update ( ) : void

Regularly checks if something worthy of notifying the user happens. This includes unexpected scene changes (double-clicking .unity files), creating new scenes and source TextScene files having been changed between now and the time it was loaded.

메소드 상세

DoSaveAndReload() 공개 메소드

public DoSaveAndReload ( string scene, TextSceneDeserializer, callback ) : void
scene string
callback TextSceneDeserializer,
리턴 void

GetCurrentScene() 공개 메소드

Returns the current scene being monitored.
public GetCurrentScene ( ) : string
리턴 string

MonitorUpdate() 공개 정적인 메소드

Wrapper for running an update on the monitor.
public static MonitorUpdate ( ) : void
리턴 void

SaveIfTempIsNewer() 공개 메소드

public SaveIfTempIsNewer ( ) : void
리턴 void

SetCurrentScene() 공개 메소드

Sets the current TextScene we will monitor for changes. Also stores the current scene Unity has open (the binary version) so we can detect if the user suddenly changes to either a new scene or a different binary scene without going via the TextScene functionality.
public SetCurrentScene ( string filename ) : void
filename string /// A holding the full absolute path to the TextScene file. ///
리턴 void

TextSceneMonitor() 공개 메소드

Creates a new TextSceneMonitor and reads in relevant values from PlayerPrefs (such as last monitored scene).
public TextSceneMonitor ( ) : System
리턴 System