IVFXService

VFX Service

Interface

Handles Visual Effects on the spatial platform

Examples

int healthPoints = 1000;

public void DealDamage(int damage)
{
healthPoints -= damage;
SpatialBridge.vfxService.CreateFloatingText($"{damage}!", FloatingTextAnimStyle.Bouncy, transform.position, Vector3.up, Color.red);

if (healthPoints == 0)
Destroy(gameObject);
}
int healthPoints = 1000;

public void DealDamage(int damage)
{
healthPoints -= damage;
SpatialBridge.vfxService.CreateFloatingText($"{damage}!", FloatingTextAnimStyle.Bouncy, transform.position, Vector3.up, Color.red);

if (healthPoints == 0)
Destroy(gameObject);
}