BuildSettingsDate() public static method

Returns the time the build settings file was last written to.
public static BuildSettingsDate ( ) : DateTime
return DateTime
Esempio n. 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;
            }
        }
    }
Esempio n. 2
0
    void LoadSettings()
    {
        scenes = TextScene.ReadScenes();

        loadedBuildSettingsTime = TextScene.BuildSettingsDate();
    }