Hello! I downloaded standard asset in my unity v5.1.1f but now when i updated to vUnity 2017.3.0f3 (64-bit) it gives the following error i m too new to solve it pls if anyone can figure out whats the problem then pls help Assets/Standard Assets/ParticleSystems/Scripts/WaterHoseParticles.cs(43,25): error CS1061: Type `UnityEngine.Component' does not contain a definition for `attachedRigidbody' and no extension method `attachedRigidbody' of type `UnityEngine.Component' could be found. Are you missing an assembly reference?
I would say that you should delete the standard assets from the old one, and import the newest copies. If any API updates need to be made, you'll be prompted to let it auto update, and just click "Go Ahead". If this was your own script, then you could change the code to read "GetComponent<Rigidbody>()" but I think the first suggestion is better, using the newer assets.
ok i updated it and it solved problem but what is this one??? error CS1704: An assembly with the same name `UnityEngine.UI' has already been imported. Consider removing one of the references or sign the assembly C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll (Location of the symbol related to previous error) C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll (Location of the symbol related to previous error) error CS1704: An assembly with the same name `UnityEngine.Networking' has already been imported. Consider removing one of the references or sign the assembly C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll (Location of the symbol related to previous error) C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Networking/Standalone/UnityEngine.Networking.dll (Location of the symbol related to previous error) error CS1704: An assembly with the same name `UnityEngine.Timeline' has already been imported. Consider removing one of the references or sign the assembly C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/RuntimeEditor/UnityEngine.Timeline.dll (Location of the symbol related to previous error) C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/Timeline/Runtime/UnityEngine.Timeline.dll (Location of the symbol related to previous error) error CS1704: An assembly with the same name `UnityEngine.GoogleAudioSpatializer' has already been imported. Consider removing one of the references or sign the assembly C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/Runtime/UnityEngine.GoogleAudioSpatializer.dll (Location of the symbol related to previous error) C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityGoogleAudioSpatializer/RuntimeEditor/UnityEngine.GoogleAudioSpatializer.dll (Location of the symbol related to previous error) error CS1704: An assembly with the same name `UnityEngine.HoloLens' has already been imported. Consider removing one of the references or sign the assembly C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/Runtime/UnityEngine.HoloLens.dll (Location of the symbol related to previous error) C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/RuntimeEditor/UnityEngine.HoloLens.dll (Location of the symbol related to previous error) Compilation failed: 5 error(s), 0 warnings
I do not really understand that. I didn't think that you could import standard assets if they were already there. I was talking about using the import package (in the assets menu), and choosing what you wanted (after having deleted the old ones). Not sure if that's the route you took. If I were you, I might try just making a clean new project, importing (as described above) the standard assets that I need, and then copying over my assets & scripts from the previous project. See if that works better. Or you could just try deleting the standard assets folder, again, and importing it in the manner above, if that's not what you just did.
Okay, well did you import the assets from the assets menu -> import package -> standard assets Because I don't think you should be getting doubles. And please make sure you deleted the old ones? You can do this in your existing project, don't have to make a new one, that was just a suggestion if you were stuck. Hopefully you can get over this bump in the road and get to work on your game !
When I received this error, I simply reimported Standard Assets | ParticleSystems, and the error went away.