R2API TempVisualEffect
API for adding custom temporary visual effects for characters.
Date uploaded | 2 years ago |
Version | 1.0.0 |
Download link | RiskofThunder-R2API_TempVisualEffect-1.0.0.zip |
Downloads | 366462 |
Dependency string | RiskofThunder-R2API_TempVisualEffect-1.0.0 |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2109README
R2API.TempVisualEffect - Custom temporary visual effects for characters.
About
R2API.TempVisualEffect is a submodule assembly for R2API that allows mod creators to easily add new VisualEffects to Characters that appear after a certain condition has been fulfilled.
Use Cases / Features
R2API.TempVisualEffect works via the method AddTemporaryVisualEffect, which allows you to have a prefab be instantiated in a CharacterBody after a specific condition becomes true. The prefab supplied must have the TemporaryVisualEffect component.
For the condition you use the EffectCondition delegate, which returns true if the visual effect should appear for the body.
You can also specify if the effect should be scaled using the body's best fit radius, or if the effect should spawn in a specific ChildLocator entry.
A separate overload for AddTemporaryVisualEffect takes an EffectRadius delegate, which returns a specific radius for the visual effect.
Related Pages
Changelog
'1.0.0'
- Split from the main R2API.dll into its own submodule.