BuildSettingsDate() 공개 정적인 메소드

Returns the time the build settings file was last written to.
public static BuildSettingsDate ( ) : DateTime
리턴 DateTime
예제 #1
0
    void OnInspectorUpdate()
    {
        //TODO FIXME HACK: I can't currently see how to make the instance survive a play/stop session,
        //                 so we just make sure it is constantly requested (and renewed if necessary).
        //UPDATE: Moved this to a possibly even worse hack, but at least it works without needing to have
        //        this editor window active.
        //TextSceneMonitor.MonitorUpdate();


        if (EditorApplication.timeSinceStartup > nextBuildSettingsCheck)
        {
            nextBuildSettingsCheck = EditorApplication.timeSinceStartup + 2.0f;

            DateTime buildSettingsTime = TextScene.BuildSettingsDate();

            if (buildSettingsTime > loadedBuildSettingsTime)
            {
                LoadSettings();
                loadedBuildSettingsTime = buildSettingsTime;
            }
        }
    }
예제 #2
0
    void LoadSettings()
    {
        scenes = TextScene.ReadScenes();

        loadedBuildSettingsTime = TextScene.BuildSettingsDate();
    }