Questions tagged [unity3d-ui]

For questions regarding the UI system of Unity game engine.

Use this tag for questions on how to use elements of Unity's UI system (such as scrolling panels, buttons, sliders), how to connect those dynamically to code, and how to use the reactive layout system of the UI system.

Unity has full tutorials of the UI subsystem here https://unity3d.com/learn/tutorials/topics/user-interface-ui including both video and written tutorials.

The class UnityEngine.UI can be found at these URLs https://docs.unity3d.com/ScriptReference/UI.Button.html

35 questions
0
votes
2 answers

What's the best practice for activating/deactivating UI components in Unity3D?

I'm making a UI for my Unity3D game and am activating/deactivating UI components in order to display or hide them, which works but is slow. The first time a UI component is activated, it is particularly slower than thereafter. Is there a best…
daniel metlitski
  • 747
  • 3
  • 11
  • 23
0
votes
1 answer

Unity Making a wall using Scroll Rect

I am for the first time using the scroll Rect system in the Unity UI, and for some tasks it works just fine, but... If I want to make a wall-like feature, like facebook story wall, I am having a bit of difficulties? In the wall system, each object…
Mansa
  • 2,277
  • 10
  • 37
  • 67
0
votes
1 answer

Get correct position of letters using cachedTextGenerator

Consider a Text with many paragraphs of text. It's easy to find where a certain character is, using UICharInfo. Example, find all newlines... TextGenerator tg = text.cachedTextGenerator; int kText = tg.characterCount; for (int i=0; i < kText; ++i) …
Fattie
  • 27,874
  • 70
  • 431
  • 719
0
votes
1 answer

UnityEngine.CharacterInfo.width (etc) warnings

In this code fragment ... charInfo.width = (int)ToFloat(charNode, "xadvance"); charInfo.flipped = false; charInfo.uv = .. a Rect I get these warnings... Assets/BitmapFontImporter.cs(54,42): warning CS0618: UnityEngine.CharacterInfo.width' is…
Fattie
  • 27,874
  • 70
  • 431
  • 719
0
votes
2 answers

Stop count when game over and store value

For my new game in Unity3D, I created Javascript code that allows to count when the player is playing and display the value in a GUIText. But I have some issues. In the game, the count start and the GUIText shows the value of the count. But when I…
Ophélia
  • 241
  • 2
  • 6
  • 16
1 2
3