World Dissolve Base

Base class for World Dissolve and See Through Dissolve

Mask Behavior

The scripts (World Dissolve, See Through Dissolve) automatically configure the mask's properties (type, auto detection, etc.) based on its settings when you add a mask.

Functions

  • ForceUpdateMasksParameters: Updates all properties related to SDFs (e.g., positions, rotations, etc.). Updates properties for each material from the dictionary. Called in LateUpdate. Call when masks transform is changed.

  • UpdateMaterialsParameters: Updates all properties related to SDFs (e.g., positions, rotations, etc.). Updates properties for each material from the dictionary. Called in OnUpdate.

  • RefreshWorldDissolve: Refreshes all properties and keywords for the materials managed by this script. Ensures the latest material settings are applied, including mask types.

  • RemoveMaterial: Removes a material from the materials dictionary. If 'forceRemove' is true, the material is removed regardless of its count.

  • AddMaterial: Adds a material to the materials dictionary to manage its usage. Prevents duplication and manages multiple entries of the same material.

  • ChangeActiveMasks: Updates the number of active masks.

  • ChangeType: Changes the type of world dissolve mask used, updating all materials managed by the script.

  • ChangeUseDisplacement: Toggles the use of displacement in the dissolve effect, applying changes to all materials managed by the script.

Properties

General

  • Invert: Inverts the dissolve effect.

  • GuideTexture: Guide texture for the dissolve pattern.

  • GuideTiling: Tiling rate of the guide texture.

  • GuideStrength: Intensity of the guide texture effect.

  • UseBackColor: Enables a background color for the dissolve.

  • BackColor: Background color for the dissolve effect.

Burn

  • BurnHardness: Controls the sharpness of the burn effect.

  • BurnOffset: Determines the offset of the burn effect.

  • EmberOffset: Offset for the ember effect within the burn area.

  • EmberSmoothness: Smoothness of the ember edges.

  • EmberWidth: Width of the ember effect.

  • EmberColor: Color of the ember effect.

  • BurnColor: Primary color for the burn effect.

Smooth

  • UseDithering: Whether to use dithering to fake transparency.

  • EdgeColor: Color of the edge.

  • EdgeWidth: Width of the edge.

  • EdgeSmoothness: Smoothness of the edge.

  • AffectAlbedo: Determines if the albedo is affected.

  • GlareColor: Color of the glare effect.

  • GlareGuideStrength: Strength of the guide texture for the glare effect.

  • GlareWidth: Width of the glare effect.

  • GlareSmoothness: Smoothness of the glare effect.

  • GlareOffset: Offset for the glare effect.

Displacement

  • DisplacementColor: Emission color for the dissolve effect based on displacement.

  • UseDisplacement: Enables displacement effects.

  • DisplacementPerVertex: Applies displacement per vertex for more detailed effects.

  • DisplacementSmoothness: Smoothness of the displacement effect.

  • DisplacementOffset: Offset value for displacement.

  • RotationAxis: Axis for rotational displacement.

  • RotationMin: Minimum rotation angle for displacement.

  • RotationMax: Maximum rotation angle for displacement.

  • RandomPositionOffset: Offset for randomizing position in displacement.

  • PositionOffset: Direct position offset for displacement.

  • Scale: Scale factor for displacement.

  • NormalOffset: Offset for normals in displacement.

Last updated