Search Issue Tracker
Won't Fix
Votes
16
Found in
2017.1.1f1
Issue ID
959166
Regression
No
Standard Assets contain warnings in Unity 2017 and later versions
Steps to reproduce:
1. Create a new projects
2. Download & Import Standard assets from the asset store
3. Observe the console
Expected results: console is empty
Actual results: console contains some script-related warnings
Reproduced on: 2017.1.2p1, 2017.2.0p1, 2017.3.0b8, 2018.1.0a2
Comments (12)
-
40detectives
Apr 03, 2019 21:29
2018.3.11f1:
Assets\Cameras\Scripts\LookatTarget.cs(22,42): warning CS0649: Field 'LookatTarget.m_RotationRange' is never assigned to, and will always have its default value
Assets\Standard Assets\Cameras\Scripts\AbstractTargetFollower.cs(17,45): warning CS0649: Field 'AbstractTargetFollower.m_UpdateType' is never assigned to, and will always have its default value
-
bgulanowski
Jan 09, 2019 15:46
Unity 2018.3.0f2, building for Mac OS X.
/Assets/Standard Assets/Utility/ForcedReset.cs(27,27): Warning CS0618: 'GUITexture' is obsolete: 'This component is part of the legacy UI system and will be removed in a future release.' (CS0618) (StandardAssets)
/Assets/Standard Assets/Utility/SimpleActivatorMenu.cs(16,16): Warning CS0618: 'GUIText' is obsolete: 'This component is part of the legacy UI system and will be removed in a future release.' (CS0618) (StandardAssets)
/Assets/Standard Assets/Utility/TimedObjectDestructor.cs(13,13): Warning CS0618: 'Object.DestroyObject(Object)' is obsolete: 'use Object.Destroy instead.' (CS0618) (StandardAssets)
/Assets/Standard Assets/Utility/ActivateTrigger.cs(33,33): Warning CS0618: 'Object.DestroyObject(Object)' is obsolete: 'use Object.Destroy instead.' (CS0618) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(44,44): Warning CS0649: Field 'FirstPersonController.m_MouseLook' is never assigned to, and will always have its default value null (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(56,56): Warning CS0649: Field 'FirstPersonController.m_RunstepLenghten' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Utility/SmoothFollow.cs(17,17): Warning CS0649: Field 'SmoothFollow.rotationDamping' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Cameras/Scripts/LookatTarget.cs(42,42): Warning CS0649: Field 'LookatTarget.m_RotationRange' is never assigned to, and will always have its default value (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(44,44): Warning CS0649: Field 'FirstPersonController.m_JumpSound' is never assigned to, and will always have its default value null (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(40,40): Warning CS0649: Field 'FirstPersonController.m_RunSpeed' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Utility/PlatformSpecificContent.cs(22,22): Warning CS0649: Field 'PlatformSpecificContent.m_ChildrenOfThisObject' is never assigned to, and will always have its default value false (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(39,39): Warning CS0649: Field 'FirstPersonController.m_UseHeadBob' is never assigned to, and will always have its default value false (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(46,46): Warning CS0649: Field 'FirstPersonController.m_FootstepSounds' is never assigned to, and will always have its default value null (CS0649) (StandardAssets)
/Assets/Standard Assets/Utility/SmoothFollow.cs(21,21): Warning CS0649: Field 'SmoothFollow.target' is never assigned to, and will always have its default value null (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(40,40): Warning CS0649: Field 'FirstPersonController.m_WalkSpeed' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(40,40): Warning CS0649: Field 'FirstPersonController.m_GravityMultiplier' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Cameras/Scripts/AbstractTargetFollower.cs(45,45): Warning CS0649: Field 'AbstractTargetFollower.m_UpdateType' is never assigned to, and will always have its default value (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(40,40): Warning CS0649: Field 'FirstPersonController.m_StepInterval' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Utility/PlatformSpecificContent.cs(34,34): Warning CS0649: Field 'PlatformSpecificContent.m_BuildTargetGroup' is never assigned to, and will always have its default value (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(40,40): Warning CS0649: Field 'FirstPersonController.m_StickToGroundForce' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Utility/WaypointProgressTracker.cs(50,50): Warning CS0649: Field 'WaypointProgressTracker.circuit' is never assigned to, and will always have its default value null (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(40,40): Warning CS0649: Field 'FirstPersonController.m_JumpSpeed' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(44,44): Warning CS0649: Field 'FirstPersonController.m_LandSound' is never assigned to, and will always have its default value null (CS0649) (StandardAssets)
/Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs(39,39): Warning CS0649: Field 'FirstPersonController.m_UseFovKick' is never assigned to, and will always have its default value false (CS0649) (StandardAssets)
/Assets/Standard Assets/Utility/SmoothFollow.cs(17,17): Warning CS0649: Field 'SmoothFollow.heightDamping' is never assigned to, and will always have its default value 0 (CS0649) (StandardAssets) -
unity_a1ewdZLKiKCNoA
Nov 18, 2018 08:20
Well, I guess I have found the answer. Removing all the BuildTargetGroup that are giving the issue, solved the problem for me. Hope it'll help you, :).
-
John-Eden
Oct 15, 2018 14:33
Getting load of warnings from this asset package:
Assets/Standard Assets/Effects/ImageEffects/Scripts/BloomAndFlares.cs(112,97): warning CS0618: `UnityEngine.Camera.hdr' is obsolete: `use Camera.allowHDR instead.'
for example.
-
jmortiger
Sep 06, 2018 16:44
Same here w/ 2018.2.1f1. The errors I got were:
Assets/Plugins/Standard Assets/Utility/SimpleActivatorMenu.cs(10,16): warning CS0618: `UnityEngine.GUIText' is obsolete: `This component is part of the legacy UI system and will be removed in a future release.'Assets/Plugins/Standard Assets/Utility/ForcedReset.cs(6,27): warning CS0618: `UnityEngine.GUITexture' is obsolete: `This component is part of the legacy UI system and will be removed in a future release.'
As well as something about "SpeedTree" needing to be regenerated.
I manually replaced "GUIText" w/ "UnityEngine.UI.Text" and it cleared the error; I'm not sure about the "UnityEngine.GUITexture" though, and I didn't test it.
-
JDS5
Jun 11, 2018 19:42
Same as DCHAP with 2018.1.1f1 (at least on the mac).
I get from the reading that it needs to be updated, but a "patch" would be appreciated. -
davidsebek85
Apr 26, 2018 10:04
same problem
-
jatin_zlatanist
Apr 11, 2018 14:42
Yes on 2017.2.1f1 It showed same warnings in above mentioned comment and also things like "AirCraftFuselageBody is self-intersecting and has been discarded"
"GroundRunway is self-intersecting and has been discarded"Similarly Many More.....
-
DChap
Mar 23, 2018 01:07
OP didn't list specific warnings but I'm seeing:
Assets/Plugins/Standard Assets/Utility/SimpleActivatorMenu.cs(10,16): warning CS0618: `UnityEngine.GUIText' is obsolete: `This component is part of the legacy UI system and will be removed in a future release.'
Assets/Plugins/Standard Assets/Utility/ForcedReset.cs(6,27): warning CS0618: `UnityEngine.GUITexture' is obsolete: `This component is part of the legacy UI system and will be removed in a future release.'
Unity Version: 2017.3.1f1
Standard Assets version: 1.1.5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Texture Compression default texture format is set to PVRTC when building via script BuildPipeline.BuildPlayer
- [Android][GameActivity] APK built with Development Build enabled gets flagged as having Malware
- Default name of manually created Global Light 2D GameObject differs from the one included in the initial project Scene
- Option for "Acceleration Structure Build Flags" cannot be toggled when Lightmaps have been Generated for a Mesh Renderer
- Lights in Batch keep resetting to 0 in the Light Batching Debugger when a new GameObject is created and the mouse cursor is hovered over the Inspector window
Resolution Note (2018.1.X):
Standard asset were deprecated