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

problem in c# script particle system

$
0
0
please can anyone tell me what is the wrong in this code using UnityEngine; using System.Collections; public class EnableComponents : MonoBehaviour { void example() { if(Input.GetMouseButtonDown("Fire1")) { particleSystem.emissionRate = 1; } else { particleSystem.emissionRate = 0; } } } Assets/EnableComponents.cs(11,26): error CS1502: The best overloaded method match for `UnityEngine.Input.GetMouseButtonDown(int)' has some invalid arguments Assets/EnableComponents.cs(11,26): error CS1503: Argument `#1' cannot convert `string' expression to type `int'

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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