Questions tagged [unity]
Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.
9 questions from the last 30 days
1
vote
0
answers
18
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 ...
2
votes
2
answers
918
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, ...
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
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 ...
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
0
answers
37
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:
...
0
votes
3
answers
147
views
How do big open worlds handle Object Pooling?
Object pools are great. They are fun to make, save you a lot of memory and fps.
But as my projects grow in size and complexity it gets harder and harder to work with them. If you only have a couple of ...
1
vote
1
answer
51
views
Can't get a Prefab to scale down accordingly inside a Container
I have a prefab with some fixed sizes on itself and its elements:
Then added a Aspect Ratio Fitter and a Preferred Height:
.
When using that prefab from a container with Horizontal Layout Group with ...
1
vote
0
answers
23
views
Halftoning Multipass HDRP Unity
I am pretty new to rendering, and I wanted to add a black and white halftone effect. I wrote the two shaders and created the materials (pass 0 to create mask and pass 1 to mix it with the scene). They ...