GUI Texture Sheet of Controls
I am trying to figure out how to use the following GUI sprite sheet from open game art at http://opengameart.org/content/rpg-gui-construction-kit-v10 It is not a standard layout. I got it to work in...
View ArticleHow disable event interception in EventTrigger?
So in the documentation for EventTrigger: NOTE: Attaching this component to a GameObject will make that object intercept ALL events, and no event bubbling will occur from this object!Click to expand......
View ArticleButton Click Won't Work - Screenshots Provided
When I start the project, I must click Esc for the cursor to show, but on YouTube videos, I've noticed that their cursors show automatically once their project has been run. When I click the button,...
View ArticleGUILayout or canvas (IMGUI or UI system)
Hi all So here I am trying to decide which way to go. GUI scripting or this canvas system. Maybe you can help me break the tie. What inclines me towards the scriptable gui is the fact I'm making a...
View ArticleWaitingForJob (not related to occlusion culling)
Ever since 5.2 came out, we have been getting enormous spikes (like 40ms) every second or two from what the profiler is calling "WaitingForJob." I've seen people asking about this before, but they...
View ArticleEvent system performance pretty bad
Hello, I noticed my game getting "magically" worse and worse performance, so I decided to profile it and see what was up. I noticed that in my Profiler, "BehaviorUpdate" was taking up about 30-40% of...
View ArticleButton Animation Not Working
Hello, I wanted to make my button animate whenever I hover over it, so I did it like in Unity's offical tutorial about UI Buttons and I set the transition to "Animation", I autogenerated the animator...
View ArticleRotate RectTransform/UIImage per script?
Hi there, i wanted to build an old fashioned watch (with moving hands) in my GUI. I put the background image on a canvas and then also two UIImages for the two hands. I positioned them and pivoted them...
View ArticleUI and masking 3d meshes in a scrollrect
So I am basically trying to do this http://answers.unity3d.com/questions/998203/mask-3d-objects-inside-ui-scrollrect.html....i have scrollrect with buttons and each button has a different 3d object on...
View ArticleDisplaying a 3D Object in Canvas - Overlay
Maybe in my Items Menu, I'd like to have a rotating display of a 3D Item, and I'd like to have it in the Canvas object itself so it isn't covered by anything (i.e. water, trees, etc.) When I do this,...
View ArticleDynamic Flight UI
Building a space flight simulator and would like objects on the canvas to correlate with the ships relative velocities, meaning one shows its current velocity and another shows its desired velocity....
View ArticleUnity 5.3.6f1 Canvas stops rendering.
We have a very nasty bug that only pops up from time to time. Sometimes already after 5 minutes sometimes it takes an hour in play. What happens is that the canvas just stops rendering. Colliders still...
View Articleon-Screen Keyboard for external Apps on Android
Hello, Is it possible to create an app in unity to use it as an on-screen-keyboard for other (external) apps in android? How can I tell android to use my app as an alternative on-screen-keyboard??...
View ArticleObject with BoxCollider2D seems to block UI interaction
We have a scene that's made of: 1. A UI Button 2. An object with BoxCollider2D (layer: custom). The canvas is in "World Space". There's currently only 1 camera in the scene, with a Physics2DRaycaster...
View ArticleOnClick Method not working.
Hey guys. I'm quite new and I wonder, why my onClick method doesn't work. Only drag and drop version works..... public void OnClick() { Debug.Log("test"); } Thanks a lot.
View ArticleNo current camera?
A Canvis, add the script to the Canvas. Update() call the below script. Code (CSharp): void MouseClick() { if (Input.GetMouseButtonDown(0)) { Ray ray =...
View ArticleElegant solution for setting interactable to 'false' for numerous buttons
Hi all - So, I'm chopping away at my incremental game, being fairly new to Unity and all. For the sake of simplicity, let's say I've got three primary resources (food, wood, and ore) that I store as...
View ArticleOptimized menu system: SetActive() vs. nested Canvases vs. nested CanvasGroup
Hi, Our game is 100% based on the new UI. I want to know your opinion about best performant optimized solution to make menus and screen transitions using the new UI. Our original solution: A root...
View ArticleClicking a button leaves it in MouseOver state
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...
View Article[5.2]Dropdown , OnValueChanged.
Hey guys: I have been trying to set up the new dropdown element but I cant make it work as it should: I am using this script to take the "value" from the dropdown: Code (csharp): using UnityEngine;...
View Article