Stylized Water 2 – Dynamic Effects docs

Stylized Water 2 - Dynamic Effects (Extension)

Stylized Water 2 - Dynamic Effects (Extension)
Version: 1.1.0
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.stylizedwater2.runtime assembly, otherwise you won’t be able to access the StylizedWater2 namespace and classes.

Public static functions

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

StylizedWater2.WaterDynamicEffectsRenderFeature.Settings.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 UpdateProperties() function to apply the changes to the rendering.

Yes No Suggest edit
Last updated on October 25, 2023
0 of 0 users found this section helpful
Suggest Edit