Reputation: 59
I am trying to edit existing project in unity version 2017.1.3f1 my goal is to change the value of a text script using direct edit from the inspector. However everytime i save the project and run the application the change i have made is not reflecting. Can any one advice me on how to deal with this.
The methods that i have tried
Click the gear icon to load the csharp script but always showing error code
"Unable to open C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Standalone/UnityEngine.UI.dll: Check external application preferences.
I have change editor from MONO and Visual Studio but still no luck.
i have attached here some images that can help understand my concern. RED circle is for the text wanted to change and the gear icon is suppose to leas the code but showing error as mention above
Upvotes: 0
Views: 213
Reputation: 44
You are using Unity, and therefore the component system. The text is part of the old (deprecated) set of GUI components. The editor window only allows you to cache the text that will be displayed. In order to load/change text, you need to create a C# script. C# script is added by pressing the AddComponent button, for example. Next, you need to use the Using UnityEngine.UI directive for your component, or TMPro for the Text Mesh Pro component. If your changes don't show up, it's likely that the project has a system that loads certain texts into your text field. In this case, you need to find out which script is responsible for this.
Upvotes: 0