Quantcast
Channel: Questions in topic: "selectiongrid"
Browsing all 94 articles
Browse latest View live
↧

To 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 Article


Scaling 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 Article


Change 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 Article

GUILayout 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

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 Article


Changing 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 Article

Selectiongrid 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 Article

How 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 Article


GUILayout.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 Article


Selection 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 Article

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
Browsing all 94 articles
Browse latest View live


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