Stylized Water 3 – Dynamic Effects documentation

Stylized Water 3 - Dynamic Effects (Extension)

Stylized Water 3 - Dynamic Effects (Extension)
Version: 3.0.1
Review

6.Scripting #

Familiarity with C# and OOP programming is assumed. Support cannot be extended to coding help. Most specific functionality and use cases really need to be handled on a project-specific basis

If you are using an assembly definition, ensure you add a reference to the sc.stylizedwater3.runtime assembly, otherwise you won’t be able to access the StylizedWater3 namespace and classes.

Public static functions

You can access the render feature’s settings from the (default) renderer currently in use through:

StylizedWater3.StylizedWaterRenderFeature.DynamicEffectsSettings.GetCurrent();

This may be used to alter settings are runtime (such as tied to a graphics settings menu).

Dynamically scaling the rendering range every frame is not recommended. When quality settings are altered; internal resources are disposed of and recreated (using the new settings). This may negatively impact performance.

Components

If you are changing parameters on the DynamicEffect component, be sure to call the public UpdateMaterial() function to apply the changes to the rendering.

Yes No Suggest edit
Last updated on November 5, 2024
0 of 0 users found this section helpful
Suggest Edit