Selection grid not working?
In the following code, it always prints 0 while I set it to 1, even when I press one of the buttons it does not change. Whats wrong with my code? var SelectedMPLevel :int = 1; var MpLevelImages...
View ArticleChanging a button texture in Selection Grid
Hi all! I have a bunch of buttons arranged in a selection grid. Can someone please tell me how I can access each of these buttons individually to change their textures?
View ArticleSelectiongrid formatting with guistyle.wordwrap
Im using a selection grid for a simple table that i need to display. the window theyre in is fixed size with a fixed horizontal internal window and a scrollable vertical one. When an entry is too long...
View ArticleHow to format Texture in selectionGrid?
Hi! I am coding the inventory for a schoolproject and I'm wondering what comes after Texture[]? With Strings it's: String[] = ["","","",""]; How do I format Texture[] so that I can add texture from...
View ArticleGUILayout.SelectionGrid with GUIStyle ignores textColor
![alt text][1] [1]: /storage/temp/6620-example.png Ok, I have a GUILayout.SelectionGrid going that seems to work fine except for one thing. It only ever uses the Normal state for textColor, regardless...
View ArticleSelection Gird Selected Item Style
Does anyone know what property of GUIStyle sets the selection grids currently selected item to a different color / image? Currently I have a selection grid that is using a custom GUIStyle, I want to...
View ArticleHow 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 ArticleSelectionGrid: 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 ArticleGridSelection 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 ArticleSelectiongrid 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 ArticleWeapon 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 ArticleCustom 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 ArticleTooltips 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 ArticleAdd 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 ArticleStaggering 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 ArticleSound 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 ArticleSelectionGrid 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 ArticleWhy am I getting a null reference?
if (response is IList) { IList buddy = (List) response; for(int i=0;i
View ArticleCan 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 ArticleProblem 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 ArticleHelp 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 Articlereference 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 ArticleUsing 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 ArticleGUI.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 ArticleGrid 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 Article3d 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 ArticleTo send Raycasting to four corners ?
Measure the distance between the mouse click and the box.I am trying to do it using code Vector3.Distance. ![alt text][1] Hi, I click on the object on the grid with the mouse and I want you to show the...
View ArticleScaling GUILayout selection grid content without changing size of selection...
Hello Unity community, I created a custom editor window and used GUILayout.SelectionGrid to make my own selection grid using textures. I was able to get my own prefabs showing and get it to scale based...
View ArticleChange slection grid content texture size/scale
I am using a gui.selection grid with textures for an inventory system. I noticed that with gui skin you can change just about everything concerning the grid's cells, but NOT any image you assign to...
View ArticleGUILayout Selection Grid Colour
Hey there, I have a GUILayout.Selection grid. However, when I click on one of the icons, I'd like to change it's colour when it's selected, so it stands out from the back drop (its currently light grey...
View Article