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

World Space UI Lag When Moving With Vive Controller

$
0
0
HI there,

I have World Space UI that is a child of a phone that I can pickup with my Vive controllers. When I am moving around the phone the UI of the phone screen lags behind the phone. I know this can be solved by just building the game and running it from an exe, but I want this to work in the editor as well. Any suggestions?

Thanks,

Dan

AspectRatioFitter causes poor performance in android (Graphics.PresentAndSync)

$
0
0
Hi,
I just found a bug that causes this Graphics.PresentAndSync. It really causes a huge performance drop.
I hope someone from Unity will help us.
IMPORTANT: This bug is obvious in Galaxy Tabs. In two of them that I used was a nightmare (FPS drop from 60 to 30)
Case 951459
here is project.

IPointerEnter/Exit Handler breaks after animation.

UI Image not updating "graphic" after anchoredPosition is changed

$
0
0
This is driving me up the <bleeping> wall.

I have a terrain. I have a canvas set to world space so that I can use UI elements on top of the terrain.

When I click somewhere on the terrain a UI Canvas button pops up. I am using the mouse's world location and converting it to the canvas location for the button. I use anchoredPosition for setting its location.

The first time I click the mouse button everything works perfectly. The UI button's anchoredPosition is changed to where I want...

UI Image not updating "graphic" after anchoredPosition is changed

Instanciante a GameObject from script and place it randomly into a panel

$
0
0
Hello All,

I try to instanciate a GameObject ( I mean a gameobject with a transform position, there is no canvas on it) => it's a dice Prefab for example :)

And I do have in my project a Canvas (screen- space overlay) with a Panel => deviceContainer

Si I do not have issue to instanciate dices from the prefab :

diceClone = Instantiate(dice, new Vector3(x, y, 0), Quaternion.identity);

But how I can be sure that my diceClone will be randomly inside the panel DeviceContainer (even if I...

Instanciante a GameObject from script and place it randomly into a panel

symbol "№" is not displayed

$
0
0
hi.
The other day I downloaded the component TextMeshPro and noticed that with any font the symbol "№" is not displayed, I really need this symbol
[​IMG]
Help me please!

UI stops working with multiple GameViews

$
0
0
Hi all!

I'm working on a game that uses Unity's (2017.1) multi display feature. While testing it out in the editor (macOS Sierra 10.12.3) I noticed very strange behavior, and I'm reaching to you guys to see if we can determine it to be a bug so that I can report it.

1.- Create a new Button in your scene (will autogenerate a basic UI setup with a canvas)

2.- Have more than one GameView tabs open in the editor.

3.- Click play.

4.- UI input (both mouse and keyboard) will completely cease...

UI stops working with multiple GameViews

Clicking a button leaves it in MouseOver state

$
0
0
I'm using an out of the box UI button and all I changed was the "Highlighted Color". When I run the game, the button highlights correctly with mouse over and reverts to normal when mouse leaves but when I click on the button, the highlight color stays on even when the mouse leaves the button area. I have to click "somewhere outside the button area" to get the highlight removed. Is this intentional? Anyone else have this problem?

Keep aspect ratio and fill screen

$
0
0
I don't know if i'm at the right place, but here's what i'm trying to achieve :

I have an image, which is just a plain menu background. I want this image to fill the whole screen, but keep it's aspect ratio.
I don't mind if the image is truncated in one of the axis. that's actually what I want it to do.

Problem is, I have no idea how to achieve this with the new UI.

Here's my actual set-up :

- Canvas -
set to Screen Space - Overlay (With pixel perfect enabled)

- Image -
Anchors set to...

Keep aspect ratio and fill screen

Emoji-Only Keyboard Input

$
0
0
I have an app (iOS, Android) to which I'd like to add networked text chat. Since our audience is sensitive, and we don't want to introduce profanity filtering etc, and since most of our audience seems to write all of our Google Play reviews pretty much entirely in emoji (yeah, seriously...) we'd like to offer emoji-only voice chat.

Is it possible to display a textinput field that only accepts and displays emoji characters?

List: Order Items by dragging

$
0
0
Hey guys,

I have a list setup as follows:

ScrollRect / Mask
--Content Size Fitter / Vertical Layout Group
----LayoutElement 1
...
----LayoutElement N

Now, I want to be able to drag one item and pull it up or downwards in order to change its position in the list.
I don't know how to do this. I tried a lot of things, but It would be great if someone could point me to the right direction. I googled a lot, nobody seems to have this desire?

Image position not updating.

$
0
0
I'm updating the position of a panel via script. If I set the panel to active then set the position at the same time this happens.


[​IMG]

Here the rec transform is in the correct position (the white square outline) but the image on the panel is in the old position (black square).

If it is already active and I set the position then everything updates correctly.

How can I get the image to update when setting the position?

Grid layout group save order of gameobjects

$
0
0
Hi. I want to save in playerprefs order of LayoutElements in Grid layout group. I have 2 scripts to drag and drop UI elements.
Code (CSharp):
  1. using UnityEngine;
  2. public class DragOrderContainer : MonoBehaviour {
  3.     public GameObject objectBeingDragged { get; set; }
  4.     void Awake () {
  5.         objectBeingDragged = null;
  6.     }
  7. }
and
Code (CSharp):
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using UnityEngine.EventSystems;
  4. public class DragOrderObject : MonoBehaviour, IPointerEnterHandler,...
Grid layout group save order of gameobjects

[FREE] Reorderable List

$
0
0
Hey,
I had some time and needed to work on a Reorderable List system for one of my project.
Here is a preview:
[​IMG]

It's waiting a pull request from Unity-UI-Extensions

Make sure to get it when it has been approuved :)

Cheers

Performance considerations

$
0
0
Hey,

I'm working with the hololens and it is very sensitive to performance.

Is there anywhere I can read on best practices with TMP in regards to performance?

Anything I definitely shouldn't do? like with ugui best fit option

My first toe dip into performance has shown there are different prices for TextAlignmentOptions.
A test of 1024 texts with random text. the first chunk is rendered Midline and the chunk in the end is Capline

View attachment 247394

Surprisingly in...

Performance considerations

UI always editing scene file

$
0
0
For a year or two now, there's been a bug where UI that uses layouts or anchors in a scene causes it to constantly overwrite the position and size values in the scene whenever entering or exiting playmode or opening or closing the scene. It makes source control super annoying since the scene files are constantly being edited and changed even though there are no actual changes. Is there any way to stop it from doing this? I haven't narrowed down exactly which components cause it, but I'm...

UI always editing scene file

How can we Load new items into Scroll-view when you get to the bottom (Load on Scroll)

$
0
0
I am trying to make a Scrollview of a really long list of items and i want the script to load new items everytime i get to the bottom of the Scrollview.
Can anyone guide me on how to do that ?
Thanks :)

Rectmask2d shader requirements

$
0
0
Hi,
I need to use sprite default material on images as default one causes huge fps drop in some android devices. But now RectMask2D do not work correctly.
Can anyone help me to convert the shader of sprite default to support RectMask2D?

Draw text with textMeshPro on a texture at runtime?

Resizing an image

$
0
0
I am displaying an image within my panel which when clicked I would like it to increase in size. When the image is clicked again I would like it to revert back to its original size?

Can anyone offer any assistance?

Thanks
Viewing all 23263 articles
Browse latest View live


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