In the new Unity3D UI (Unity > 4.6), I'm trying to create a simple script I can attach to a UI component (Image, Text, etc) that will allow me to wedge in a custom tooltip handler. So what I need is to capture a PointerEnter and PointerExit on my…
So I have this ScrollView set up using ScrollRect that has a Viewport child which has an Image and a Mask (pretty basic ScrollView setup). Inside the scroll view I have 15 buttons. I want to know what button is at the center of my ScrollView, so I…
I am building a custom window and I am trying to reuse Unity's Scene view to be able to draw directly from this specific window.
I manage to reproduce the correct window by extend UnityEditor.SceneView and here's what I have:
And here's the…
Android requires 5 different resolution of images and ios requires 3 different resolution of images during development.
Does unity requires different resolutions of images while building for android or ios?
I am trying to display full screen Webcamtexture on android Portrait mode.
but when i am building and testing it on my device its rotated and videoRotationAngle is 90
I am using RawImage as a texture. I have seen on some post that you have to rotate…
I've tried using this
Instantiate(entry, new Vector3(x, y, 0), Quaternion.identity);
It successfully created objects, as seen in my hierarchy. But I cannot see the text on the screen, even though there is a text assigned to it. I can only see an…
I have a post-process effect that uses Unity's Graphics.Blit to pixelate or apply a crt-screen effect to a scene. There are some UI elements that display after the fact (basically making it not a true post process, but let's put that aside for a…
I am working with Unity 5, and when I add Canvas Button the button get smaller
this is how it looks like before build
Before Build to an Apk
and after build on my Lg g3:
I am having issues with Unity 5 / Android and masking. In version 4.6 the mask works as expected. However, I can not get it to work at all in Unity 5.
I have attached two images of what it should look like and what it does look like if anyone could…
I am trying to create a UGUI Mask using a Canvas rendering in Worldspace. I am using Unity v4.6.1f1. Any world geometry in the scene masks the image even when the Canvas and all of its children are on the UI layer and the camera is rendering…
I have a NPOT sprite used in UI and Unity previews it like this:
When I add a Packing Tag to it Unity displays this:
Notice that Unity keeps saying it takes 8.2MB. I thought it would be lesser but when profiling my app I saw it does take 8MB.
The…
I have an UI image that is parented to a RectTransform container, which is parented to a UI panel, which is parented to a Canvas.
I want to be able to move this UI image to the center of the screen (ie. canvas) while leaving the parenting hierarchy.…
I am working with C# an Unity 5.6.1f1, I done a mechanism that on UI button click should add an additional button with text to Panel that is already on UI, and it does work... since I am able to see Object appear there
public void…
I am trying to extend UnityEngine.UI.Image like that
public class MyImage : Image {
public string Comment;
}
But I do not see extra text field Comment in inspector. Is it possible to add extra field that would be available in inspector?
PS It…
I implemented OnEnable() and it is always called in Play mode as expected. But in Editor Mode some components call OnEnable() and other don't
I need OnEnable() or other method to be called in Editor Mode to setup component to be able to prototype…