Home > other >  Unity to the particle velocity assignment in c # to do?
Unity to the particle velocity assignment in c # to do?

Time:09-22

I write so:
Public ParticleSystem water;
Public float speed=20;
Water. Main. StartSpeedMultiplier=speed;

But the system tip:
Assets/Script/SpeedControl. Cs (22, 14) : error CS1612: always modify a value type, the return value of ` UnityEngine. ParticleSystem. Main '. Consider storing the value in a temporary variable

What should I do?
  • Related