IMGUI Questions
4
In editor, I see massive and regular spikes from GC.Collect which freeze the game for anywhere from 200ms to over 1000ms. These spikes do not register in the normal profiler mode, only when profiling ...
Wend asked 21/7, 2019 at 15:3
4
Solved
Hello everyone,
I was wondering if can we change the variable name on inspector without changing it in script.
For example:
using UnityEngine;
using System.Collections;
public class Luces : MonoBeha...
Sohn asked 12/7, 2015 at 20:2
3
Solved
I am trying to add a Crosshair to my mouse look on my FPS using C#. I am totally clueless on how to do this, I been searching and found some java script tutorials, but I don’t know java script or have...
Nonary asked 2/1, 2012 at 7:20
5
Hello people,
I am doing a custom cursor that needs to be controlled by the joystick. To control the cursor with the mouse is quite easy, but I am trying to figure the equivalent but with the joystick...
Meatiness asked 26/9, 2013 at 17:6
4
Solved
Hi guys,
so, I’m trying to make a script, an Editor, that will allow me to change a value - and see the result of the change immediately while in editor mode, e.g. not running the game.
I manage to th...
Ambrotype asked 27/6, 2018 at 1:2
2
Hi,I am trying to create a crossword game with 36 buttons with alphabets on them. I want to be able to disable any of these buttons individually when I click on them but I dont know how to achieve thi...
Socinus asked 5/11, 2010 at 15:24
5
Solved
Yo World!
I’ve made a GUI that has some buttons, and a sound attached to it. For some reason when I start the game, it opens all the subwindows and even plays the sounds, how do I stop it from doing t...
Unsuccessful asked 17/7, 2012 at 1:26
2
I’m trying to “select” on mouseOver a Handle.Button, but I cant find a solution that works.
I thought I can get the ID of the control, and then check if its the same ID than HandleUtility.nearestContr...
Burnaby asked 24/1, 2018 at 8:52
1
void OnGUI()
{
TimeSpan timer = new TimeSpan(1, 1, 50);
TimeSpan deltaTimeSpan = TimeSpan.FromSeconds(Time.deltaTime);
timer = timer.Subtract(deltaTimeSpan);
string t = "Time left: " + timer.ToStr...
Kirkwall asked 26/9, 2018 at 15:54
4
hi, how can i format text segments in a textfield or textarea. similar to what can be done with htmlText property in flash apps? thanks, flexrails
Megganmeggi asked 7/12, 2009 at 21:34
2
Solved
As you see I’ve even tried passing propOwner ( this ) as argument to [MyProperty()], but it’s just stupid. I feel like there is an easy way to get what I want without all these macaroni that I wrote.
...
Barbate asked 5/7, 2019 at 15:37
6
Solved
I am getting the error
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
and the error
ArgumentException: The prefab you want to instantiate is null.
UnityEng...
Nathan asked 20/8, 2014 at 14:46
7
Hi,
I would like to make a different `TextField` appear in the GUI depending on the selected `Button`. My problem is that when I click in the displayed TextField, the function `GUI.GetNameOfFocusedCon...
Aluminium asked 27/8, 2010 at 13:43
6
Solved
Question
Hi, I need to record sound from micro
and save it to a file. for now I have
this:
void OnGUI()
{
if (GUI.Button(new Rect(10,10,60,50),"Record"))
{
audio.clip = Microphone.Start ( null, fa...
Gmt asked 26/11, 2012 at 22:46
1
© 2022 - 2024 — McMap. All rights reserved.