About 41,400 results
Open links in new tab
  1. Change color of text during runtime (Unity)? - Stack Overflow

    Apr 28, 2015 · Well if you want to change R,G,B or A components of the color of the text you can do it this way: Public Text text; float r=0.2f,g=0.3f,b=0.7f,a=0.6f; void Start() { …

  2. How to change text by script in Unity - Stack Overflow

    May 6, 2021 · Here in Unity, you have a component-oriented design. Text and Button are just Components of GameObject entities. Most parts of your game scripts are also Components …

  3. Unity - Change Text UI alpha color from script? - Stack Overflow

    Aug 23, 2016 · Try using Lerp. As long as you set the 'alpha' of 'newColor' to 0, text will fade out. public Text example; public Color newColor; public float fadeTime = 0.1f; //maybe rename this …

  4. unity game engine - How to change color text of Text Meshpro …

    Apr 21, 2020 · TextMesh Pro inputs render the text by using TextMeshProUGUI nested under the input. Typically there are two, one for the Placeholder text and one for the typed text. There …

  5. Changing color of UI Text in Unity into custom values

    Jan 13, 2015 · I want the title to change its text and color based on the object that is mouse-overed. The script below is added to each object that is intended to change the color and text …

  6. Cannot change textcolor for Text in Unity - Stack Overflow

    Jan 8, 2016 · I need change Text color for UI Text to red, I tried on Indicator and script but the text color still have black color. What is wrong here ? continueText.color = Red.color; or …

  7. c# - How to modify UI text via script? - Stack Overflow

    Oct 3, 2021 · A simple question: I'm trying to modify UI text (TextMeshPro if that makes any difference) via C# script. I am using the following code: using System.Collections; using …

  8. Unity - changing colors via script not working? - Stack Overflow

    Jul 22, 2022 · still learning Unity. I want to change text of a dots under button. These dots are TextMeshPro objects. I'd like to set the color as variable to be able to change it later in the …

  9. 3DText - Change Text Through Script - Unity - Stack Overflow

    This would be a prettier solution than one already given(C# script used in example) : //define a Textmesh that we want to edit public TextMesh tm; // here in start method (run at instantiating …

  10. c# - Unity3D: Change skybox color via script? - Stack Overflow

    Sep 23, 2012 · We can change Skybox color using the _Tint property. RenderSettings is the base class used to change the render properties at run time. For ensuring the attribute is existing in …

Refresh