Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Particle System trigger script not working,Particle system trigger script not working

$
0
0
Hello everybody. I am trying to make my particle system trigger when there is a collision. It seems there is nothing wrong except that Visual Studio says "Identifier expected". I am a beginner with Unity, so can somebody please help? Below is my code. using System.Collections; using System.Collections.Generic; using UnityEngine; functionUnityEngine; function OnTriggerEnter(col="Collider")OnTriggerEnter(col="Collider") { if (gameObject.tag == "Player")"Player") { particle.Play(); } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>