udacity / self-driving-car-sim

A self-driving car simulator built with Unity
http://udacity.com/self-driving-car
MIT License
3.88k stars 1.5k forks source link

Assets/Standard Assets/Cameras/Scripts/TargetFieldOfView.cs(62,53): error CS0246: The type or namespace name 'ParticleRenderer' could not be found (are you missing a using directive or an assembly reference?) #104

Open raoping2017 opened 5 years ago

raoping2017 commented 5 years ago

Assets/Standard Assets/Cameras/Scripts/TargetFieldOfView.cs(62,53): error CS0246: The type or namespace name 'ParticleRenderer' could not be found (are you missing a using directive or an assembly reference?)

ICEBERG-VR commented 5 years ago

Same pb here after migrating a project from 2018.2 to 2018.3

YiheChen1995 commented 5 years ago

Same problem. Any Idea how this happened?

daxiao commented 5 years ago

Same problem

xooxo commented 5 years ago

It is because Unity removed all functionality of API regarding ParticleRenderer.

Stormwaker commented 5 years ago

Just use Unity 2018.2 for this project. Anything newer will cause this error to appear.

marianpekar commented 5 years ago

As @xooxo said, ParticleRenderer has been removed. ParticleSystemRenderer is need to be used instead. https://docs.unity3d.com/ScriptReference/ParticleSystemRenderer.html

MrGT07 commented 2 years ago

Just remove that part of the code from the OR condition and it would still works the same as the ParticleRenderer returns "true" anyway.