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

How do I create a 'reasonably' sized UI element in world space?

I was trying to emulate something in the first UI lesson (http://unity3d.com/learn/tutorials/modules/beginner/ui/ui-canvas), namely text floating above a GameObject in the world. But the lesson sadly...

View Article


Non Pixel-Perfect canvas and animated UI elements

Hey, So in my UI I used the "legacy" animation system to create a little popup animation. All I'm animating are things like colors and rect transforms. However, if I don't check the Pixel Perfect...

View Article


How Do I get A reference To A Button

In my canvas I have 4 buttons. When I click the first button I want to make 2 of the other buttons to become invisible. My script is on the canvas and all the onClick functions are in that script. So...

View Article

Best way to Create Buttons with images for mobile??

Hello guys. I have some buttons made in photoshop, and those have images inside. What approach is better and faster for mobile? 1 - Export the button with the current size inside an atlas? 2 - Cut it...

View Article

UI Image Anchoring/Scaling Problem

So there's an issue I've had when implementing a few UI elements in my game. In-game, whenever a player has picked up a power-up, a series of small icons appear on the UI. View attachment 163806 THE...

View Article


Possible bug with Grid Layout group and scrollbar

Today I needed to put a Grid layout group with scroll bars on a game object. The Game object Panel has the Grid Layout Group component attached to it When I add several images inside it. It places the...

View Article

Unity UI 5.2 suddenly very glitchy

I have a project I've been working on for a while. Now I've just updated it to Unity 5.2 (first .1 now .p4) and that has caused a deluge of glitchy errors within the UI. It looks as if the atlassing...

View Article

Where can i get assets of similar assets shown in UI Tutorials

Hi guys somehow i find the UI in Tutorial (UI) quite interesting. any idea where can i get assets resource for Buttons/Menus used in the UI Tutorial? cannot find them in asset store.or somewhere... thanks

View Article


RectMask2D - What am I Missing?

So I read there's this new toy in town, RectMask2D. It's good for UI masking. Awesome. I try it and... can't get it working. What am I missing? I read the API, mmmmkay... I do google searches, forum...

View Article


Image may be NSFW.
Clik here to view.

Anchor more than 2 target

I used to use NGUI before switching to uGUI. You can anchor a widget UI to more than 1 target (no need parent) with NGUI. But If use uGUI, I just can anchor it to parent only. I want to anchor my...

View Article

Function OnMouseDown didn't working

Hi everyone, I'm learning how to use the UI in Unity and I created this script #pragma strict function Start () { } function Update () { } function OnMouseEnter () { Debug.Log("clic !"); } And I put it...

View Article

When do _UseClipRect and _UseAlphaClip work in UI-Default.shader of newGUI?

This is the code for "DefaultResourcesExtra/UI/UI-Default.shader" which is part of the Unity built-in shader that is most frequently used in our project. Code (CSharp): Shader "UI/Default" {...

View Article

Problem with instantiate UI prefabs

When I instantiate prefab with RectTransform on it in most cases it works wrong. Usually ancoredPosition and deltaSize resets and I have to set it again from script. There are another bug that I think...

View Article


Rotating a UI Mask object more than a specific amount kills its content

For some reason, UI Mask fails when you rotate it, causing its content to not render at all. Have I missed anything, or should I report a bug on this? Repro steps: Open the example scene (Or create...

View Article

Image may be NSFW.
Clik here to view.

[5.2] Terrible performance spike causing by Font cache

Hi again, I'm continue to port my project in Unity 5.2 I notice a terrible game freeze when open my UIs, due to "Font.CacheFontForText", which taking 3273ms (!), vs nothing in Unity 5.1.3. My UI...

View Article


Image may be NSFW.
Clik here to view.

OnClick() not being called

A button I am pressing does not call the function that should be attached to it. I have read the documentation and cannot see what I am doing wrong, any help would be appreciated. There are no errors...

View Article

Retain original size of RectTransform when instantiating with modified...

I have a Canvas with Reference Pixel Unit set to 20. When I'm instantiating a RectTransform with an Icon (let's say size 32x32) the size gets modified by the Reference Pixel Unit which results in...

View Article


SkillBar - How to fix 21:9 aspect ratio?

Hey guys, I'm currently having some problems with 21:9 ratio.... This is how it should look (actually this is 16:9) View attachment 163987 View attachment 163987 And this is how it looks (on 21:9) View...

View Article

Is it possible to retrieve InputField selected text

Hi there, I've been looking through the documentation but didn't find a way to do what i want to :s. I'm trying to retrieve the selected text in an inputfield, like when you select some part of a text...

View Article

Image may be NSFW.
Clik here to view.

[Text] Possible effects?

Hello, I am making my first mobile game and I've one question: is possible to replicate this text effect in Unity3D? I am using Unity UI. Thank you for your reply

View Article
Browsing all 23263 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>