All Questions
Tagged with unity-editor or unity
16,738 questions
1
vote
1
answer
49
views
Sign out of Google Play Services through code
In the Unity engine, I am using GPGS as a token to log in via Google sign-in. It works, but now I have another issue:
As of the last update of the SDK 2.1., this method in PGS for Unity is deprecated:
...
1
vote
1
answer
41
views
Is there a "best practice" for making changes to packages
This could be answered from a perspective of Unity dev, or generically for programming - either would be beneficial.
I'm working on a game and am using two packages, More Mountains' TopDownEngine (for ...
1
vote
1
answer
1k
views
Navigate UI with Dpad from Xbox controller on Mac?
So, according to some documentation I found, the Xbox controller on Mac does not return Dpad presses as vertical/horizontal axes:
As you can see, the Dpad is only recognized as buttons 5, 6, 7, and 8, ...
2
votes
2
answers
922
views
Is it worthwhile to use events when there’s only one subscriber?
I'm trying to determine the best architectural approach for handling communication in Unity, specifically when the interaction is strictly one-to-one.
The Core Design Conflict
I have five crucial, ...
2
votes
1
answer
1k
views
Smooth+Flat shaded meshes cause shadow artifacts (understanding the source of the problem)
I'm using blender to create assets to use in Unity3D, and I'm having some trouble understanding how the smooth/flat shading interacts with shadows, I'm sorry if it has been asked before, but all the "...
1
vote
2
answers
2k
views
Hold touch at the screen to move object
I'm using unity2D and C#, and I have a code for touch screen:
...
0
votes
1
answer
2k
views
Stop 2D platformer character from sliding down slope
I'm making a 2D platformer game with the default Unity 2D physics. I am implementing slopes, but my player slips down the slope because of the physics.
Here is the code I use for the player movement:
...
0
votes
1
answer
1k
views
Unity baked light messes up a set of objects
On a few objects I use a technique where instead of using geometry, I place planes with a Cutout Material on top of each other, creating a 3D illusion with minimal cost. The thing is, it looks great ...
3
votes
2
answers
1k
views
Efficient 2D grid overlay on tiles without each cell being its own GameObject
So for my game I need the ability to add a grid overlay over my tilemap. Now I don't think that making the grid with each cell being its own GameObject with some SpriteRenderer would be hard to do but ...
3
votes
1
answer
148
views
What’s the correct / idiomatic way to pause a game in Unity?
I'm trying to implement a robust pause system in Unity and I'm confused about the correct approach. My first (very simple) implementation in my previous project used a ...
1
vote
1
answer
59
views
Animation can't disable gameobject
I'm using a very basic animation to create a transition, which involves deactivating a gameobject on the last keyframe.
Goal:
The ChangeRound animation is about 1 second long. It enables the UI image ...
12
votes
1
answer
1k
views
Destroying the parent when all children are destroyed
I have a spell system where a the spell is a self-contained game object handling all the logic. When done, it destroys itself. This works great
Then I added a second game object handling animation, ...
1
vote
4
answers
2k
views
How to make TextMeshProUGUI truncate the left part (beginning) of a line?
I'm trying to display file names including their directory. When the file path gets too long for the text box, I want to align it right, because the filename is more important than the directory.
I ...
5
votes
2
answers
8k
views
How can I get Unity to do letterbox/pillarbox to maintain aspect ratio?
I'd like my game to have the same aspect ratio at all cost, including keeping all UI elements fixed in the same place. I'm totally ok with losing screen space in the interest of fixing the aspect ...
4
votes
1
answer
2k
views
Changing scene while joining room and RPC buffer problem
I have a button on my main menu that creates and has the player join a random room. After the client joins this room, I change the scene to the game (main) scene in the ...