- Home /
cannot drag script to player.Guitext error,cannot drag player script to the player in hierarchy
hello, i just started in unity with watching a survival game tutorial in you tube. and i did what he just told and when he just dragged his script to the player in hierarchy his player worked and when i dragged it says i need to fix all the errors first and when i look for errors it say this
Assets/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.' i'am super new to unity and c# and i googled for this about 5/6 hours and i found nothing.and i decided to ask from others.i uploaded some screenshots so you guys please take a look and tell me what happened. its always tells me about a legacy thing and i can understand it. is Guitext thing removed??????
please help
thanks for your time
BTW sorry for my bad English ;)
[1]: /storage/temp/112772-screenshot-
Answer by bhavinbhai2707 · Mar 11, 2018 at 06:41 PM
well those in yellow are not errors but warnings(which are not always important). I am confused why it is showing as compile time error, if its not showing up in console?? can you please upload screenshot of script if possible , so that we can see where the error is.
Answer by reshan1 · Mar 12, 2018 at 09:37 AM
hi there thanks for your reply.i solved the problem by my self.
first i opened the player object in hierarchy and then opened the inspector tab.then i made a component in there by adding a new script in there.then dragging new script from assets from script folder.
btw sorry for my bad bad english ;)
@reshan1 Glad that your issue is solved. But you should not accept my reply as answer if it was not helpful, ins$$anonymous$$d choose your solution as accept answer or else it may lead to confusion for others with same issue. cheers keep learning :)
Your answer
Follow this Question
Related Questions
Script on multiple objects not working properly! 1 Answer
Changing alpha value of a canvas from a different game object 1 Answer
Please help my head is burning from this problem : i have multiple gameobject , same script 1 Answer
Refresh panel with prefab contained value from json that created using array 0 Answers