Skip to content

Expose CesiumSunSky date and time properties to Sequencer #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: ue4-main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fixed a bug that causes a graphical glitch by using 16-bit indices when 32-bit is needed.
- Fixed a bug where metadata from the feature table was not decoded from UTF-8.
- Improved the shadows, making shadows fade in and out less noticable.
- Exposed CesiumSunSky date and time parameters to Sequencer. Be sure to use an Event Track to call `UpdateSun` every frame when animating changes in date or time.

##### Fixes :wrench:

Expand Down
5 changes: 5 additions & 0 deletions Source/CesiumRuntime/Public/CesiumSunSky.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class CESIUMRUNTIME_API ACesiumSunSky : public AActor {
UPROPERTY(
EditAnywhere,
BlueprintReadWrite,
Interp,
Category = "Cesium|Date and Time",
meta = (ClampMin = -12, ClampMax = 14))
float TimeZone = -5.f;
Expand All @@ -96,6 +97,7 @@ class CESIUMRUNTIME_API ACesiumSunSky : public AActor {
UPROPERTY(
EditAnywhere,
BlueprintReadWrite,
Interp,
Category = "Cesium|Date and Time",
meta = (UIMin = 4, UIMax = 22, ClampMin = 0, ClampMax = 23.9999))
float SolarTime = 13.f;
Expand All @@ -109,6 +111,7 @@ class CESIUMRUNTIME_API ACesiumSunSky : public AActor {
UPROPERTY(
EditAnywhere,
BlueprintReadWrite,
Interp,
Category = "Cesium|Date and Time",
meta = (ClampMin = 1, ClampMax = 31))
int32 Day = 21;
Expand All @@ -122,6 +125,7 @@ class CESIUMRUNTIME_API ACesiumSunSky : public AActor {
UPROPERTY(
EditAnywhere,
BlueprintReadWrite,
Interp,
Category = "Cesium|Date and Time",
meta = (ClampMin = 1, ClampMax = 12))
int32 Month = 9;
Expand All @@ -135,6 +139,7 @@ class CESIUMRUNTIME_API ACesiumSunSky : public AActor {
UPROPERTY(
EditAnywhere,
BlueprintReadWrite,
Interp,
Category = "Cesium|Date and Time",
meta = (UIMin = 1800, UIMax = 2200, ClampMin = 0, ClampMax = 4000))
int32 Year = 2019;
Expand Down