Questions tagged [callbacks]
The callbacks tag has no summary.
18 questions
1
vote
1
answer
441
views
Unity UI toolkit button callbacks don't work if I disable the UI document and then enable it again
I have a camera setup and I want to display a UI on it. I got a basic UI using UI toolkit shown below:
So I have a keyboard button setup so that when the button is pressed a boolean toggles and turns ...
0
votes
1
answer
169
views
How to access GameObject inside Action
I'm stuck inside an Action :
...
0
votes
1
answer
1k
views
4
votes
1
answer
2k
views
In GLUT, how do I bind an action to a press of "any key"?
Well, this sound ridiculous but the logic is escaping me. I have drawn my cube in OpenGL and I want to translate it to the right if any of the key on the keyboard is pressed. I know how to do this for ...
2
votes
1
answer
576
views
Is OnMouseUp()'s behavior intended?
Version: Unity3D 4.6.2f1
I have a grid of tiles (Cube GameObjects with a Tile script attached). They are positioned at their ...
4
votes
3
answers
2k
views
Callback on Derived Class?
How does Unity3D implement their system where if a class is derived from MonoBehaviour and has certain methods like Awake() or Update(), they are called accordingly? I want to do a similar system for ...
1
vote
1
answer
3k
views
How do I handle collision response between many different types of game objects?
I am looking for a way to avoid the dreaded switch or if/else scenarios between numerous game object types when a collision takes place in a game. For example:
You have a list of game objects which ...
1
vote
3
answers
14k
views
Handling multiple pressed keys with KeyListeners
I'm making a game Applet with Java that uses KeyListeners to control a paddle (for a game like Breakout/Pong). My basic implementation goes like this:
...
4
votes
1
answer
320
views
How do I run a callback when all objects have stopped moving?
I'm using Bullet and want to take some action once all objects in a dynamic world have reached 0 velocity (or at least a value that's very close).
I was trying to iterate over all of them all the ...