Quantcast
Channel: UGUI & TextMesh Pro
Browsing all 23263 articles
Browse latest View live

Draw circles or primitives on the new UI canvas?

Hi, I'm trying to build a Circular Health bar and I was wondering if it's possible to draw Circles/Arcs or primitives like lines into the canvas so I can create my Circular HealthBar ? Regards E

View Article


Image may be NSFW.
Clik here to view.

Make scrolling move faster in scrollRect?

Currently when you scroll something in a scrollRect, by using the mouse, touch etc., it's on a 1:1 basis. Move the mouse 100 pixels, and the content is scrolled 100 pixels. Is there a way to e.g....

View Article


Instantiated text is invisible sometimes

Hello, I need help with a text I instantiate inside a WorldSpace Canvas at runtime; sometimes it is invisible and I can't find the problem..is it a known bug? This is the code that I use: Code...

View Article

What does extents mean?

In the Text.GetGenerationSettings page (https://docs.unity3d.com/ScriptReference/UI.Text.GetGenerationSettings.html), what does "extents" mean for the Vector 2 parameter of the method?

View Article

Where did the UI team go?

Is the new UI system perfect or where did the UI team vanish? I have been following Unity patch notes and very rarely there are any fixes for the new UI reported. Is it already so good immediately...

View Article


How do i toggle a button false/true according to EditorGUILayout.TextField...

Code (csharp):   using UnityEngine; using UnityEditor; using System.Collections; using System.Collections.Generic; using System.Linq; using System;   public class Sorting : EditorWindow {     string...

View Article

Force a pointer press on a Button from code (as if it came from a mouse/touch...

For the purposes of a tutorial we're making for our 2D game, we want to force a mouse/touch press (and release) on a certain Button at certain times (controlled by an animation). We could achieve the...

View Article

Question (how to): Drag-able/zoom-able map using UI Image

I've been stuck on this question and after searching for a while I wasn't able to find a solution that fits exactly what I need (most are solution for 2d maps in world space by manipulating camera). I...

View Article


Particles within the new GUI

How can i properly implement particle systems within the new gui? I want to anchor them at the right places and so on. What i did was adding a rect transform and a canvas renderer, but they do not...

View Article


Unity Sample UI

How Can i download UNITY SAMPLE UI?????........... I Cant download it from the asset store

View Article

Image may be NSFW.
Clik here to view.

Unity 5.5 UI Bug - Look rotation viewing vector is zero

This is what i got from console, Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation(Vector3, Vector3) UnityEditorInternal.Slider2D:CalcDeltaAlongDirections(Int32, Vector3,...

View Article

Dynamically creating UI Button Element

I've seen here that if I want to dynamically a create, a button for example I must create a prefab, of this button in a game object, I've done this but for some reason the source image does not appear....

View Article

How to export small size Texture2D but with good resolution

Hi, I want to save a resizing SMALL Texture2D (165x123) and I'm having the problem that the image is pixeled and It doesn't maintain the enough resolution. How can I export a small texture with good...

View Article


Screen size not same when i build to apk

Hii, i'm a newbie with unity. i try to make an aplication to android device. my apps look like this. View attachment 211072 i don't know, but when i try build the apps and install on my device, the...

View Article

Text Rect/Preferred Height not expanding

Hi, I've been trying to make my text object expanding when the actual text string is too long to fit the width (wrap). i tried options like this:...

View Article


Set different padding for each child of a Vertical Layout Group

Hello, I have a Vertical Layout Group with "child force expand - width" set to false. As children of the Vertical Layout Group, I have several GameObjects with a Text component on each. For example, a...

View Article

Interesting UI concept found in the wild

From the XKCD online comic, which is not usually interactive, I found this interesting concept for a light-control gizmo: http://xkcd.com/1663/ Grab the small red pointer and drag it around with the...

View Article


Assigning unit specific actions to button grids

In nearly every RTS you have the option to select a unit and you see a menu based on the unity type (soliders, builders, herores, etc). Some of them (like in Company of Heroes) have a button that opens...

View Article

How can i toggle between to bool variables ?

Code (csharp):   using UnityEngine; using UnityEditor; using System.Collections; using System.Collections.Generic; using System.Linq; using System;   public class test : EditorWindow {     string...

View Article

Ability to add enum argument to button functions

A feature I would love to see is for buttons to be able to call functions with an enum type argument for instance... Code (csharp):   public enum type {   fire, water }   public void SetType(type t) {...

View Article
Browsing all 23263 articles
Browse latest View live