Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 10 months ago.
Improve this question
I'm following an online course and then I noticed that the buttons just stopped working.
Here are some images The Scene View, Game Over Canvas Components, Game Over Text Components, Restart Button Components(The Broken Button), Leave Text Components(The Other Broken Button), The Script That Have Something to do with the canvas.
I've tried multiple solutions on the internet and nothing works and I think I didn't mess with anything else but the colors and the text in the button. I just want the buttons to work like it's a button.
your EventSystem Object maybe deleted or disabled, try to recreate it:
It will created automatically when you create UI/Canvas:
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 days ago.
Improve this question
The form on the right is what appears by default when I run the program.
I set all the controls in the form to proper spacing, yet the blank label with a 3D border still shortens itself when I run it.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
Image of problem: https://answers.unity.com/questions/1620825/extreme-lightning-difference-in-same-scene.html
This is what happens in my game (see image)...
I don't know what is causing it. When the player (a bouncing ball) is in this area the linerenderer often doesn't work and some of the pins dissapear to then randomly appear again.
The lightning is set to baked and there are 2 directional lights in the scene. The second scene (which you see on the image) is activated (set active) later in the game. Could this problem be caused because the level isn't baked?
If you have other solution, please share them! :)
-Regards Quint van O.
When you reload or open a scene while editor is in play mode, Unity not bake the lightning. That's why you see darker light on opened scene.
It only occurs in the editor. It will not produced when you build your game.
To see how your game behave in editor you can bake the lightning for each scene. Go to Window -> Lighting -> Settings -> On the bottom untick Auto Generate and then click Generate Lightning
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Is there a way to make objects invisible while editing your form in VC# / C#.?
I want to make my image and panel invisible while editing my form in Microsoft Visual Studio Express 2015 and even if I make it invisible during edit will I don't want it to stay invisible when the program runs.
Is there any way?
Thanks
You go into the designer file (a ".cs" file) and find where the particular control is added into the form. e.g:
this.Controls.Add(button1);
And then you either delete this line or comment it:
//this.Controls.Add(button1);
Hope this helps
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I have a win forms application. The form contains a third party chart from dotnetcharting. The form also has a few other controls which allows the user to select the type of chart they wish to see.
The issue I have is when the user clicks the button to plot the chart nothing appears to happen (it is though), so the chart is blank. However when I go to another application, a word document, or web page or whatever and then go back to my win forms application the chart now appears. Why is this?
Is this to do with win forms or the chart? Is there some refresh I need to do?
I think it has to do with the refreshing, please try to put the line:
Application.DoEvents();
after the data is being updated. It should then change the form.
Difficult to say without more information.
Sounds like you have to invalidate the control which sounds odd for a third party control.
Possibly there is a function on the control to tell it to redraw or that you are finished with calculating. Did you check the documentation on usage?
Some controls can be paused from updating the UI to let them handle lots of data and restarted after you finished with the data.
Post some more info on usage and code
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have created a simple paint application in VC# 2008 with the help of a YouTube video. Its code is as here:
http://paste.pocoo.org/show/268704/
The problem with the code is that if I draw something in the picturebox, minimize the application, and thn maximize it, whatever I had drawn, disappears. The picturebox becomes clear. Why is it so? Plz help me.
You should be doing your painting during the Paint event. This event completely redraws the image. So when you un-minimize the application, the image is redrawn and you don't do anything.
Your application needs to store information about what has been drawn so that it can be redrawn. This is an example of the Model-View-Controller model. The PictureBox is the viewer, the stored information is the model and mouse event listeners will be part of the controller that can make alterations to the model.