Quantcast
Channel: Questions in topic: "guiwindow"
Browsing all 58 articles
Browse latest View live

Raycasting and Layer Masks problem

I want to have various 'info points' set up across my scene that contain a unique ID(stored as an int). When the player clicks on one of these points a GUI window will pop up and display the relevant...

View Article



GUI window layout!!!

I create a GUI window and wanna use it as a Q&A interaction.Pls see following scripts. The function is When I click A, another GUILayout displays as "Congratulations". But during the test, the...

View Article

GUI.Texture Over GUI.Window

hi~ i'd like to ask how can a `GUI.Texture()` be drawn over `GUI.Window()` on the same script e.g function OnGUI() {...

View Article

Create a new guiWindow every time button is clicked?

Hi, I have an editor window with a button. How do I make it so that every time the button is pressed a new guiWindow pops up? So far I tried: if(GUILayout.Button("Add Window", GUILayout.Width(150),...

View Article

Simple quest system: from Update function to OnGUI? (javascript)

Hello all! First time posting here :) I've come across a simple quest system script (which can be seen [here][1] in Portuguese) to which I made some minor tweaks. However, being no programmer myself,...

View Article


Dynamic variable creation for unique GUI.Window generation

I'm wanting each click of a button to generate a new draggable window containing text taken randomly from a string of items. What I can't figure out is how to generate completely new variables to store...

View Article

How can I put this function in GUI Window?

shopWindow = GUI.Window (0, shopWindow, DoMyWindow, "Shop"); How do I put this function function ResizeGUI(_rect : Rect) : Rect { var FilScreenWidth = _rect.width / 800; var rectWidth = FilScreenWidth...

View Article

Impossible: 2 toolbars show being clicked at the same time!

I noticed whenever I click a toolbar button on one toolbar, two buttons (in different windows and in different toolbars) show as being clicked at the same time! I can't figure out how or why they are...

View Article


GUI window gets drawn behind other gui elements.

This a strange bug where GUI window of mine gets drawn behind other elements of gui. PS: all the elements are drawn from same file and irrespective of the GL contents, it still gets drawn behind the...

View Article


Passing arguments to a GUI window function [Solved]

I want to pass an object as an argument to the gui window function, lets say: GUI.Window (myID, myRect, myCustomWindow(object), "Title"); void myCustomWindow(customClass object) { //do things } Now...

View Article

Can I make my GUI Buttons appear OVER a GUI Window?

I think the question is pretty self explanatory. I have two buttons that appear at the cursor position when something else is right clicked (I'm using the Brackey's inventory system, C# edition). So...

View Article

Can anyone tell me how to make a Integratable map?

I just want to make a map for my game, and have it display in a GUI window. It is a top-down tower defense game and its map spreads pretty far. I just want it to be similar to the command and conquer...

View Article

GUI.Window called 2 frames ahead than OnGUI?

When modifying window rect for **same** amount before and after gui.window call: Vector2 mousePosition = Event.current.mousePosition; rect.position -= mousePosition; rect = GUILayout.Window (0, rect,...

View Article


How to fix error?

I've got a problem, and I don't know how to fix Warning: C # this in English because I'm Brazilian ERROR: (171,29): error CS0123: A method or delegate `SistInventario.ExibeListaCrafts()' parameters do...

View Article

getting control 0's position in a group with only 0 controls when doing repaint

Hi everyone, I'm having that issue in some gui layoutwindow. I tried to clear what's inside the guiwindow to only draw a GUILayout.box inside, nothing changes. The Event.current.type issue doesn't...

View Article


Stop tooltip disappearing off screen

How can I have my tooltip popup adjust its position if it's drawning off screen? Coding in C#. if (hoveringOverPlace == true) { //Vector3 pos = hoveringPlace.transform.position; Rect windowRect = new...

View Article

GUI.Window not displaying Buttons

- UPDATE : I've updated the script once again. Also, I tested a few things, and I put the hSlider right under where I define what the selectedToolbar is. It appeared when it was there... Any ideas?...

View Article


Please help me,Edit GUI.Window size in EditorWindow

I want to Edit GuiWindow the size, But I Need mouse drag model, But I Unable to get Guiwindow the Border so Please help me Translation Please understand

View Article

Button inside a window not responding!

I have a button inside a window. The button is showing, it is not responding to clicks! Here is the code: void OnGUI() { useGUILayout = true; GUI.skin = mainSkin; if (showWindow) GUI.DragWindow (2, new...

View Article

Raycasting and Layer Masks problem

I want to have various 'info points' set up across my scene that contain a unique ID(stored as an int). When the player clicks on one of these points a GUI window will pop up and display the relevant...

View Article
Browsing all 58 articles
Browse latest View live




Latest Images