TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ SpecialVisuals()

virtual void Terraria.ModLoader.ModSceneEffect.SpecialVisuals ( Player player,
bool isActive )
inlinevirtual

Allows you to create special visual effects in the area around the player. For example, the Blood Moon's red filter on the screen or the Slime Rain's falling slime in the background. You must create classes that override T:Terraria.Graphics.Shaders.ScreenShaderData or T:Terraria.Graphics.Effects.CustomSky, add them in a Load hook, then call M:Terraria.Player.ManageSpecialBiomeVisuals(System.String,System.Boolean,Microsoft.Xna.Framework.Vector2). See the ExampleMod if you do not have access to the source code.
This runs even if M:Terraria.ModLoader.ModSceneEffect.IsSceneEffectActive(Terraria.Player) returns false. Check isActive for the active status.

Definition at line 98 of file ModSceneEffect.cs.

99 {
100 }