Questions tagged [interface]
Refers to a method of interacting with the game. This can be: mouse, keyboard, voice, motion.
75 questions
1
vote
1
answer
210
views
How should I go about handling multiple phone resolutions from a reference resolution?
I built my entire game in Unity based on my Android phone resolution, both for UI and object sizes. Now, everything looks good for a 1080 x 2400 resolution, but I know that's not the aspect ratio of ...
0
votes
1
answer
76
views
Best way to code event system that has both one-to-one subscription and one-to-several subscription?
I'm trying to create an event system that can be used for all types of events that happen in my game but I'm running into this following problem.
My player HUD needs to be updated whenever an enemy ...
1
vote
1
answer
41
views
Add Item for OptionsButton is Gone from the editor
When i added in a optionbutton for my hud i couldnt find a way to add items manually,this was weird as when i looked for a way,a button on top of the editor should appear but its not there?
I dont ...
0
votes
0
answers
40
views
Drag an Item trough mouseclick - Supported Events System Unity
Can I activate the OnDrag and OnEndDrag trough the OnPointerClick handler to start dragging ...
0
votes
1
answer
39
views
Creating a procedural filter stack GUI similar to Blender's Mofifier panel
I have a data structure that represents a simple terrain system and a number of filter algorithms that can be run on it. I want to be able to apply them in in any arbitrary order and have multiple ...
4
votes
1
answer
90
views
What does "Continuity of response" mean in the book "Game Feel"
In Steve Swink's book "Game Feel", he talks about 3 thresholds the computer must meet in order to maintain the illusion of real-time control.
The impression of motion (display above 10 ...
0
votes
2
answers
301
views
Interaction between interfaces with C# Unity
I'm making a Mindustry-type prototype. Some block (such as miners) can output resource (with the IOutput interface), some block (such as containers) can input those ...
1
vote
1
answer
340
views
UnityEditor related classes can not be referenced. Why?
I have two classes. Both of them are placed in the editor/interface_field folder.
...
3
votes
2
answers
337
views
Given a base class and many derived classes with additional features, what's the best practice for accessing those features?
This might sound strange, but let me explain. Say I want to write a safari program.
In this safari there is an object pool of 10 animals (Animal*): 2 ostrich, 5 ...
0
votes
0
answers
302
views
How do I zoom in using the App version of Twine?
How do I zoom in using this program in Windows 10?
3
votes
0
answers
997
views
Zooming in a lot without having 3D objects disappear in the Unity Editor
I'm editing the 2D colliders on some objects of my game, and I need them to be very accurate, so I'm zooming in a lot. Problem is, since my objects are 3D graphically, when I zoom in a lot they ...
0
votes
1
answer
113
views
Interact with inheriting class methods from "casted" base class (collisions, etc)
I want to implement a damage system that works across both living items (Entity) and environment items (Environment). The key ...
3
votes
0
answers
1k
views
Unity Prefabs set to Read Only?
I have a collection of different enemies that I save as Prefabs with default AI settings. I drag them into the game world and apply changes to the AI as necessary.
Every now and then for some reason I ...
1
vote
2
answers
855
views
Unity: Keyboard Shortcut to Deselect Game Object
How do you unselect a game Object in the 3d view using your keyboard?
2
votes
3
answers
208
views
Is it possible/recommended to make a universal game library interface in C
Lets say I want a game to be able to run with SDL, Allegro, on Game parks or Tiny Arcade and I don't want to recode everything everytime I port my game.
The C and C++ language separate definition in ....