Quantcast
Browsing all 94 articles
Browse latest View live

How can I change Toolbar/SelectionGrid selected item's text color?

How can I change Toolbar/SelectionGrid selected item's text color? The first thing I did is to look in the GUISkin for those controls, but I saw that they aren't in the GUISkin. I suppose that their...

View Article


SelectionGrid: Change the active background texture

Hi, Does anyone know how to change the background texture of an active selectiongrid? I have added a GUIStyle for it and changed a few background textures, like normal, hover, active and focused....

View Article


GridSelection buttons in a foreach loop? C#

hi, I've been working on adding resolution buttons to my options menu and I've ran into a slight problem. I figured since the box is only 100 high it would force the buttons to grid up next to each...

View Article

Selectiongrid too many action calls...

Hey there, I have a number of buttons built from a selection grid. What I want to do is when you click a button, it makes just one call/action. At present, it keeps calling and generating multiple...

View Article

Weapon Selection Script

Hey, I need help with a feature I want to add to my game. I am trying to create a script that allows the player to choose the Weapon that he wants to spawn with. I have created two scripts that are...

View Article


Custom elements in selectiongrid?

Hi guys. I want to make a listbox in my game with couple of custom labels and images in it as elements and I'm looking for a way to do that. Would it be somehow possible to set up custom GUIContent for...

View Article

Tooltips over SelectionGrid - how to get working?

I just wanted the tooltips to show upon the SelectionGrid elements. I tried to replicate this solution from here. http://forum.unity3d.com/threads/44525-Tooltips-for-a-SelectionGrid But the tooltips...

View Article

Add a button to toolbar/selection grid?

I am trying to make a "tab" view similar to the one in the internet browsers where you have a tab line and a "+" button to make a new button (and well, "-" to remove it), so I am trying to make a...

View Article


Staggering buttons with GUI.SelectionGrid

I'm trying to offset buttons so they are layed out at a diagonal from each other. Each one corresponds to a different view of the screen; so, it would make sense to use `GUI.SelectionGrid` to have the...

View Article


Sound effect on Grid selection

Hello, I'm not really good in GUI scripting but I'm trying to create this avatar selection grid with sound and texture. I had an earlier version of the script where I got the textures to work but it is...

View Article

SelectionGrid is not returning a value!!

I've written an Inventory system and have come to a point where I want a small submenu to popup in the form of a selection grid, except that the selection grid isn't returning any value, it stays the...

View Article

Why am I getting a null reference?

if (response is IList) { IList buddy = (List) response; for(int i=0;i

View Article

Can I have toggle buttons in a selection grid?

I am trying to create a group of buttons where the user is able to have up to x buttons toggled at the same time. Is is possible to use selection grid to do this or must I create some custom code. My...

View Article


Problem using GUILayout.SelectionGrid

Hello everyone, I’m having a problem which I’m starting to think that is a bug of the tool. I’m trying to do a UI customizing the styles, I need a GUILayout.SelectionGrid but it is not working...

View Article

Help with Lists and SelectionGrid

Hello, I have two questions to ask about the Lists because I am making an inventory. 1) I use GUILayout.SelectionGrid, who show a string List. In these List there are my items, like Axe or Sword. So in...

View Article


reference array item relative to selectiongrid button

I have a listof strings and a list of textures, both are added/remoted simultaniously, so each item in the list is assosiated with the other in the other string. For example, my string list might be...

View Article

Using selection grid to activate text boxes

Sorry if this is answered somewhere else but I cannot seem to find it. I am trying to create a selection grid and actually have the buttons on the grid create a box where the user can input text,...

View Article


GUI.SelectionGrid for multiplayer?

I'm a little confused about how I can make this usable for multiplayer (up to four players). using UnityEngine; using System.Collections; using System.Collections.Generic; public class GameManager :...

View Article

Grid on Ship

I want a grid to cover my ship only and nothing else. Currently I'm using a plane for the textures (1x1 grid blocks tiled 40x40) but I can use a terrain, quad, or whatever is needed to make this work....

View Article

3d selection grid

I know there are an abundance of resources on 2d selections boxes, and I've used them in the past. For my game, I think a 3d selection box would be a lot more accurate. Here's an example of what I mean...

View Article
Browsing all 94 articles
Browse latest View live