I have watched and read a lot of tutorials and I still cannot get my particle effect to instantiate when it hits the lizard as per the lecture. It doesn’t show behind or in front of the camera. I have tried playing with so many things in the settings - please see on the picture the latest attempt. When I drag an instance of the particle effect directly to the screen, it will show, but not when it is linked to a lizard.
I am using unity 2019.3.3f1
This is the code I currently have on that health script:
public class Health : MonoBehaviour
{
[SerializeField] float health = 100f;
[SerializeField] GameObject deathVFX;
public void DealDamage(float damage)
{
health -= damage;
if (health <= 0)
{
Destroy(gameObject);
}
}
private void TriggerDeathVFX()
{
if (!deathVFX) { return; }
GameObject deathVFXObject = Instantiate(deathVFX, transform.position, transform.rotation);
Destroy(deathVFXObject, 1f);
}
}