Skip to content
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

Add Interp specifier to CesiumSunSky to change date and time in Sequencer #760

Open
argallegos opened this issue Feb 21, 2022 · 6 comments · May be fixed by #761
Open

Add Interp specifier to CesiumSunSky to change date and time in Sequencer #760

argallegos opened this issue Feb 21, 2022 · 6 comments · May be fixed by #761
Assignees
Labels
enhancement New feature or request low hanging fruit

Comments

@argallegos
Copy link
Contributor

A user mentioned that certain properties are not accessible in the Sequencer, such as SunSky date and time information. This means that things like sunrises, etc can't be easily animated using Sequencer.

These properties can be exposed to Sequencer by adding the Interp specifier when declaring the UProperty.

@kring kring added enhancement New feature or request good first issue Good for newcomers and removed good first issue Good for newcomers labels May 9, 2022
@xuelongmu xuelongmu self-assigned this Oct 20, 2022
@mathieuvannereux
Copy link

Hi, can you explain how to do this please ? Where do you "declaring the UProperty" ?

@kring
Copy link
Member

kring commented Jun 20, 2024

There's an unmerged PR that adds it, so you can take a look at that:
#761

There are also comments in there about how you may be able to make use of these changes.

@mathieuvannereux
Copy link

Hi, I already read the topic #761 with the Repeater Event Track, but it seems to work only by "Adding interp specifier to relevant properties". After searching explanations on wen, and if I understand well, I have to modify the code source of the Cesium Sun & Sky with C++ in Virtual Studio ? But I don't know how to do that, the tutorials I found with Virtual Studio are completely wooly for me !

@mathieuvannereux
Copy link

What I'm I supposed to do with this :

[Source/CesiumRuntime/Public/CesiumSunSky.h

@@ -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;

@kring
Copy link
Member

kring commented Jun 21, 2024

Right, you currently need to modify the plugin. If you're not comfortable doing that, then unfortunately changing the time with the sequencer is not possible at this time.

The only other possibility is to create a new custom property with the Interp attribute on one of your own objects, and code it so that setting your property sets the corresponding CesiumSunSky property. It might even possible to do this from Blueprints, but I haven't tried.

@mathieuvannereux
Copy link

Thank you, I'm not afraid of trying to code but I would just like to know where to start. I don't even know where to access to these "properties", whether in BP or C++ ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low hanging fruit
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants