Description:
Switching between night and day lighting scenarios in Spectrum Galaxy Example Map.
Switching in Editor:
Spectrum Galaxy is using Lighting Scenarios for it's day-time or night-time lighting. In order to toggle these in the editor:
1. Ensure the levels tab is visible ("windows" menu then select "levels")
2. If you desire to view day-time lighting, in the "levels" tab please toggle on "persistent level" and "Lighting_Scenario_Daytime" levels (see image below).
Important note: Alternatively the night-time lighting would require you to have the "persistent level" and "Lighting_Scenario_Nighttime" levels toggled on (visible).
Switching in Game:
While playing the game, the example map allows you to switch between day-time and night-time lighting by going to the "lounge" room seen below:
Then please approach the sofa on the right and press "E" on the keyboard to rest. After a short cinematic, the game will switch from the currently active lighting scenario to the other. (Day to Night or Night to Day).
Changing Default In-Game Lighting via Blueprints:
The Spectrum Galaxy example map loads the day-time lighting scenario by default when you play the game.
You can find the setup by opening the "level blueprint" and then finding the section titled "main menu". You'll notice that the right-most node in that section is called "Load Stream Level (by Name)". The level name on that node is the exact name of the day-time lighting scenario (Lighting_Scenario_Daytime).
The node highlighted above in yellow corresponds to the day-time lighting scenario.
Changing the default lighting to night-time.
In order to change the default setup shown above to night-time, please follow theseĀ  3 simple steps:
1. In the "main menu" section of the "level blueprint". Please disconnect the "Load Stream Level (by Name)" node from the "Set Input Mode UI Only" node.
2. Then you'll need to connect the same "Set Input Mode UI Only" node to the "Unload Stream Level (by Name)" node in the "Activate Nighttime" section.
Expanded view above and close-up view below
3. Finally, please compile and save the level blueprint.
Now the night-time lighting scenario will be loaded by default when you play the game! While playing the game, the lighting is changed in the same manner by resting in the lounge sofa.
As an additional note: If you set the default lighting scenario to night-time via blueprints (as shown above). The introductory scene of the cinematic will not look correct. That is because that scene requires the day-time scenario to be loaded at the start of the cinematic, but once this scene is over, the rest of the cinematic works as intended.
Back to Top